Lines Matching refs: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()
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()
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()
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()
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()
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()