|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include "utils/builtins.h"#include "utils/inet.h"
Go to the source code of this file.
Macros | |
| #define | SPRINTF(x) ((size_t)sprintf x) |
Functions | |
| static char * | inet_cidr_ntop_ipv4 (const u_char *src, int bits, char *dst, size_t size) |
| static char * | inet_cidr_ntop_ipv6 (const u_char *src, int bits, char *dst, size_t size) |
| char * | pg_inet_cidr_ntop (int af, const void *src, int bits, char *dst, size_t size) |
Definition at line 37 of file inet_cidr_ntop.c.
|
static |
Definition at line 85 of file inet_cidr_ntop.c.
References b, EMSGSIZE, and SPRINTF.
Referenced by pg_inet_cidr_ntop().
|
static |
Definition at line 165 of file inet_cidr_ntop.c.
References b, EMSGSIZE, i, and SPRINTF.
Referenced by pg_inet_cidr_ntop().
| char * pg_inet_cidr_ntop | ( | int | af, |
| const void * | src, | ||
| int | bits, | ||
| char * | dst, | ||
| size_t | size | ||
| ) |
Definition at line 56 of file inet_cidr_ntop.c.
References EAFNOSUPPORT, inet_cidr_ntop_ipv4(), inet_cidr_ntop_ipv6(), PGSQL_AF_INET, and PGSQL_AF_INET6.
Referenced by cidr_abbrev().