PostgreSQL Source Code git master
|
#include "libpq/pqcomm.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | PgIfAddrCallback) (struct sockaddr *addr, struct sockaddr *netmask, void *cb_data) |
Functions | |
int | pg_range_sockaddr (const struct sockaddr_storage *addr, const struct sockaddr_storage *netaddr, const struct sockaddr_storage *netmask) |
int | pg_sockaddr_cidr_mask (struct sockaddr_storage *mask, char *numbits, int family) |
int | pg_foreach_ifaddr (PgIfAddrCallback callback, void *cb_data) |
typedef void(* PgIfAddrCallback) (struct sockaddr *addr, struct sockaddr *netmask, void *cb_data) |
int pg_foreach_ifaddr | ( | PgIfAddrCallback | callback, |
void * | cb_data | ||
) |
Definition at line 425 of file ifaddr.c.
References callback(), pg_ntoh32, pg_sockaddr_cidr_mask(), and run_ifaddr_callback().
Referenced by check_same_host_or_net(), and main().
int pg_range_sockaddr | ( | const struct sockaddr_storage * | addr, |
const struct sockaddr_storage * | netaddr, | ||
const struct sockaddr_storage * | netmask | ||
) |
Definition at line 49 of file ifaddr.c.
References range_sockaddr_AF_INET(), and range_sockaddr_AF_INET6().
Referenced by check_ip().
int pg_sockaddr_cidr_mask | ( | struct sockaddr_storage * | mask, |
char * | numbits, | ||
int | family | ||
) |
Definition at line 105 of file ifaddr.c.
Referenced by check_network_callback(), parse_hba_line(), pg_foreach_ifaddr(), and run_ifaddr_callback().