Lines Matching refs:family

96 	if (!get_addr_1(&addr, arg, AF_INET) && addr.family == AF_INET) {  in get_netmask()
422 int get_addr_1(inet_prefix *addr, const char *name, int family) in get_addr_1() argument
429 if ((family == AF_DECnet) || (family == AF_MPLS)) in get_addr_1()
431 addr->family = family; in get_addr_1()
432 addr->bytelen = (family == AF_INET6 ? 16 : 4); in get_addr_1()
437 if (family == AF_PACKET) { in get_addr_1()
443 addr->family = AF_PACKET; in get_addr_1()
450 addr->family = AF_INET6; in get_addr_1()
451 if (family != AF_UNSPEC && family != AF_INET6) in get_addr_1()
461 if (family == AF_DECnet) { in get_addr_1()
463 addr->family = AF_DECnet; in get_addr_1()
473 if (family == AF_MPLS) { in get_addr_1()
475 addr->family = AF_MPLS; in get_addr_1()
490 addr->family = AF_INET; in get_addr_1()
491 if (family != AF_UNSPEC && family != AF_INET) in get_addr_1()
525 int get_prefix_1(inet_prefix *dst, char *arg, int family) in get_prefix_1() argument
536 if ((family == AF_DECnet) || (family == AF_MPLS)) in get_prefix_1()
538 dst->family = family; in get_prefix_1()
548 err = get_addr_1(dst, arg, family); in get_prefix_1()
550 dst->bitlen = af_bit_len(dst->family); in get_prefix_1()
568 int get_addr(inet_prefix *dst, const char *arg, int family) in get_addr() argument
570 if (get_addr_1(dst, arg, family)) { in get_addr()
572 family_name(family) ,arg); in get_addr()
578 int get_prefix(inet_prefix *dst, char *arg, int family) in get_prefix() argument
580 if (family == AF_PACKET) { in get_prefix()
584 if (get_prefix_1(dst, arg, family)) { in get_prefix()
586 family_name(family) ,arg); in get_prefix()
734 int family = AF_UNSPEC; in read_family() local
736 family = AF_INET; in read_family()
738 family = AF_INET6; in read_family()
740 family = AF_DECnet; in read_family()
742 family = AF_PACKET; in read_family()
744 family = AF_IPX; in read_family()
746 family = AF_MPLS; in read_family()
748 family = AF_BRIDGE; in read_family()
749 return family; in read_family()
752 const char *family_name(int family) in family_name() argument
754 if (family == AF_INET) in family_name()
756 if (family == AF_INET6) in family_name()
758 if (family == AF_DECnet) in family_name()
760 if (family == AF_PACKET) in family_name()
762 if (family == AF_IPX) in family_name()
764 if (family == AF_MPLS) in family_name()
766 if (family == AF_BRIDGE) in family_name()
800 if (n->addr.family == af && in resolve_address()
807 n->addr.family = af; in resolve_address()