Lines Matching full:family

19  * printf("Address family: %s\n", nl_af2str(nl_addr_get_family(a)));
22 * printf("Address family: %s\n", nl_af2str(nl_addr_get_family(a)));
180 * @arg family Address family.
185 struct nl_addr *nl_addr_build(int family, void *buf, size_t size) in nl_addr_build() argument
193 addr->a_family = family; in nl_addr_build()
206 * @arg family Address family.
209 * family and allocates a new abstract address based on it.
213 struct nl_addr *nl_addr_alloc_attr(struct nlattr *nla, int family) in nl_addr_alloc_attr() argument
215 return nl_addr_build(family, nla_data(nla), nla_len(nla)); in nl_addr_alloc_attr()
221 * @arg hint Address family hint or AF_UNSPEC.
226 * Format Len Family
247 int err, copy = 0, len = 0, family = AF_UNSPEC; in nl_addr_parse() local
262 family = hint; in nl_addr_parse()
276 family = AF_INET; in nl_addr_parse()
281 family = AF_INET6; in nl_addr_parse()
286 family = AF_LLC; in nl_addr_parse()
300 family = AF_INET; in nl_addr_parse()
312 family = AF_INET6; in nl_addr_parse()
327 family = AF_LLC; in nl_addr_parse()
347 family = AF_DECnet; in nl_addr_parse()
375 family = AF_UNSPEC; in nl_addr_parse()
389 nl_addr_set_family(addr, family); in nl_addr_parse()
561 * Check if an address matches a certain family.
563 * @arg family Desired address family.
565 * @return 1 if the address is of the desired address family,
568 int nl_addr_valid(char *addr, int family) in nl_addr_valid() argument
573 switch (family) { in nl_addr_valid()
576 ret = inet_pton(family, addr, buf); in nl_addr_valid()
597 * Guess address family of an abstract address object based on address size.
599 * @return Address family or AF_UNSPEC if guessing wasn't successful.
753 void nl_addr_set_family(struct nl_addr *addr, int family) in nl_addr_set_family() argument
755 addr->a_family = family; in nl_addr_set_family()
880 * @name Address Family Transformations
916 char *nl_af2str(int family, char *buf, size_t size) in nl_af2str() argument
918 return __type2str(family, buf, size, afs, ARRAY_SIZE(afs)); in nl_af2str()