#include "fmgr.h"
Go to the source code of this file.
Data Structures | |
struct | inet_struct |
struct | inet |
struct | macaddr |
Defines | |
#define | PGSQL_AF_INET (AF_INET + 0) |
#define | PGSQL_AF_INET6 (AF_INET + 1) |
#define | DatumGetInetP(X) ((inet *) PG_DETOAST_DATUM(X)) |
#define | DatumGetInetPP(X) ((inet *) PG_DETOAST_DATUM_PACKED(X)) |
#define | InetPGetDatum(X) PointerGetDatum(X) |
#define | PG_GETARG_INET_P(n) DatumGetInetP(PG_GETARG_DATUM(n)) |
#define | PG_GETARG_INET_PP(n) DatumGetInetPP(PG_GETARG_DATUM(n)) |
#define | PG_RETURN_INET_P(x) return InetPGetDatum(x) |
#define | DatumGetMacaddrP(X) ((macaddr *) DatumGetPointer(X)) |
#define | MacaddrPGetDatum(X) PointerGetDatum(X) |
#define | PG_GETARG_MACADDR_P(n) DatumGetMacaddrP(PG_GETARG_DATUM(n)) |
#define | PG_RETURN_MACADDR_P(x) return MacaddrPGetDatum(x) |
Typedefs | |
typedef struct macaddr | macaddr |
#define DatumGetInetPP | ( | X | ) | ((inet *) PG_DETOAST_DATUM_PACKED(X)) |
Definition at line 74 of file inet.h.
Referenced by convert_network_to_scalar().
#define DatumGetMacaddrP | ( | X | ) | ((macaddr *) DatumGetPointer(X)) |
Definition at line 80 of file inet.h.
Referenced by convert_network_to_scalar().
#define MacaddrPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 81 of file inet.h.
Referenced by gbt_macadkey_cmp(), and leftmostvalue_macaddr().
#define PG_GETARG_INET_P | ( | n | ) | DatumGetInetP(PG_GETARG_DATUM(n)) |
#define PG_GETARG_INET_PP | ( | n | ) | DatumGetInetPP(PG_GETARG_DATUM(n)) |
Definition at line 77 of file inet.h.
Referenced by cidr_abbrev(), cidr_out(), cidr_send(), cidr_set_masklen(), hashinet(), inet_abbrev(), inet_out(), inet_send(), inet_set_masklen(), inet_to_cidr(), inetand(), inetmi(), inetmi_int8(), inetnot(), inetor(), inetpl(), network_broadcast(), network_cmp(), network_eq(), network_family(), network_ge(), network_gt(), network_host(), network_hostmask(), network_le(), network_lt(), network_masklen(), network_ne(), network_netmask(), network_network(), network_show(), network_sub(), network_subeq(), network_sup(), and network_supeq().
#define PG_GETARG_MACADDR_P | ( | n | ) | DatumGetMacaddrP(PG_GETARG_DATUM(n)) |
Definition at line 82 of file inet.h.
Referenced by hashmacaddr(), macaddr_and(), macaddr_cmp(), macaddr_eq(), macaddr_ge(), macaddr_gt(), macaddr_le(), macaddr_lt(), macaddr_ne(), macaddr_not(), macaddr_or(), macaddr_out(), macaddr_send(), and macaddr_trunc().
#define PG_RETURN_INET_P | ( | x | ) | return InetPGetDatum(x) |
Definition at line 78 of file inet.h.
Referenced by cidr_in(), cidr_recv(), cidr_set_masklen(), inet_client_addr(), inet_in(), inet_recv(), inet_server_addr(), inet_set_masklen(), inet_to_cidr(), inetand(), inetmi_int8(), inetnot(), inetor(), inetpl(), network_broadcast(), network_hostmask(), network_netmask(), network_network(), and pg_stat_get_backend_client_addr().
#define PG_RETURN_MACADDR_P | ( | x | ) | return MacaddrPGetDatum(x) |
Definition at line 83 of file inet.h.
Referenced by macaddr_and(), macaddr_in(), macaddr_not(), macaddr_or(), macaddr_recv(), and macaddr_trunc().
#define PGSQL_AF_INET (AF_INET + 0) |
Definition at line 37 of file inet.h.
Referenced by addressOK(), convert_network_to_scalar(), inet_cidr_ntop(), inet_net_ntop(), inet_net_pton(), ip_addrsize(), network_family(), and network_recv().
#define PGSQL_AF_INET6 (AF_INET + 1) |
Definition at line 38 of file inet.h.
Referenced by inet_cidr_ntop(), inet_net_ntop(), inet_net_pton(), ip_addrsize(), network_family(), and network_recv().