18 struct sockaddr *netmask,
22 const struct sockaddr_storage *netaddr,
23 const struct sockaddr_storage *netmask);
26 char *numbits,
int family);
int pg_sockaddr_cidr_mask(struct sockaddr_storage *mask, char *numbits, int family)
int pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data)
void(* PgIfAddrCallback)(struct sockaddr *addr, struct sockaddr *netmask, void *cb_data)
int pg_range_sockaddr(const struct sockaddr_storage *addr, const struct sockaddr_storage *netaddr, const struct sockaddr_storage *netmask)
static void callback(struct sockaddr *addr, struct sockaddr *mask, void *unused)