|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <unistd.h>#include <sys/stat.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <arpa/inet.h>#include <sys/file.h>#include "common/ip.h"
Go to the source code of this file.
Functions | |
| static int | getaddrinfo_unix (const char *path, const struct addrinfo *hintsp, struct addrinfo **result) |
| static int | getnameinfo_unix (const struct sockaddr_un *sa, int salen, char *node, int nodelen, char *service, int servicelen, int flags) |
| int | pg_getaddrinfo_all (const char *hostname, const char *servname, const struct addrinfo *hintp, struct addrinfo **result) |
| void | pg_freeaddrinfo_all (int hint_ai_family, struct addrinfo *ai) |
| int | pg_getnameinfo_all (const struct sockaddr_storage *addr, int salen, char *node, int nodelen, char *service, int servicelen, int flags) |
|
static |
Definition at line 156 of file ip.c.
References calloc, free, sockaddr_un::sun_family, and sockaddr_un::sun_path.
Referenced by pg_getaddrinfo_all().
|
static |
Definition at line 231 of file ip.c.
References snprintf.
Referenced by pg_getnameinfo_all().
| void pg_freeaddrinfo_all | ( | int | hint_ai_family, |
| struct addrinfo * | ai | ||
| ) |
Definition at line 85 of file ip.c.
References free.
Referenced by ident_inet(), ListenServerPort(), parse_hba_auth_opt(), parse_hba_line(), PerformRadiusTransaction(), and PQconnectPoll().
| int pg_getaddrinfo_all | ( | const char * | hostname, |
| const char * | servname, | ||
| const struct addrinfo * | hintp, | ||
| struct addrinfo ** | result | ||
| ) |
Definition at line 56 of file ip.c.
References getaddrinfo_unix(), and hostname.
Referenced by ident_inet(), ListenServerPort(), parse_hba_auth_opt(), parse_hba_line(), PerformRadiusTransaction(), and PQconnectPoll().
| int pg_getnameinfo_all | ( | const struct sockaddr_storage * | addr, |
| int | salen, | ||
| char * | node, | ||
| int | nodelen, | ||
| char * | service, | ||
| int | servicelen, | ||
| int | flags | ||
| ) |
Definition at line 117 of file ip.c.
References getnameinfo_unix(), and strlcpy().
Referenced by BackendInitialize(), check_hostname(), ClientAuthentication(), emitHostIdentityInfo(), fill_hba_line(), ident_inet(), inet_client_addr(), inet_client_port(), inet_server_addr(), inet_server_port(), ListenServerPort(), log_status_format(), pg_stat_get_activity(), pg_stat_get_backend_client_addr(), and pg_stat_get_backend_client_port().