Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs

inet.h File Reference

#include "fmgr.h"
Include dependency graph for inet.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define DatumGetInetP (   X  )     ((inet *) PG_DETOAST_DATUM(X))

Definition at line 73 of file inet.h.

#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 InetPGetDatum (   X  )     PointerGetDatum(X)

Definition at line 75 of file inet.h.

#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))

Definition at line 76 of file inet.h.

#define PG_GETARG_INET_PP (   n  )     DatumGetInetPP(PG_GETARG_DATUM(n))
#define PG_GETARG_MACADDR_P (   n  )     DatumGetMacaddrP(PG_GETARG_DATUM(n))
#define PG_RETURN_INET_P (   x  )     return InetPGetDatum(x)
#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)
#define PGSQL_AF_INET6   (AF_INET + 1)

Typedef Documentation

typedef struct macaddr macaddr