Lines Matching defs:family
35 int family;
39 int in_addr_is_null(int family, const union in_addr_union *u);
40 int in_addr_is_link_local(int family, const union in_addr_union *u);
41 int in_addr_is_localhost(int family, const union in_addr_union *u);
42 int in_addr_equal(int family, const union in_addr_union *a, const union in_addr_union *b);
43 int in_addr_prefix_intersect(int family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen);
44 int in_addr_prefix_next(int family, union in_addr_union *u, unsigned prefixlen);
45 int in_addr_to_string(int family, const union in_addr_union *u, char **ret);
46 int in_addr_from_string(int family, const char *s, union in_addr_union *ret);
47 int in_addr_from_string_auto(const char *s, int *family, union in_addr_union *ret);
52 int in_addr_mask(int family, union in_addr_union *addr, unsigned char prefixlen);
54 static inline size_t FAMILY_ADDRESS_SIZE(int family) {
55 assert(family == AF_INET || family == AF_INET6);
56 return family == AF_INET6 ? 16 : 4;