/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 95 if (addr1->sa_family != addr2->sa_family) 99 || addr1->sa_family != addr2->sa_family) 104 switch (addr1->sa_family) { 149 if (addr1->sa_family != addr2->sa_family) 153 || addr1->sa_family != addr2->sa_family) 158 switch (addr1->sa_family) { 214 if (addr1->sa_family != addr2->sa_family) 218 || addr1->sa_family != addr2->sa_family) 223 switch (addr1->sa_family) { 262 int s = socket(remote->sa_family, SOCK_DGRAM, 0); in getlocaladdr() [all …]
|
D | grabmyaddr.c | 192 I->ifa_addr->sa_family = m->ifa_family; in recvaddrs() 319 if (p->addr->sa_family != q->addr->sa_family) 356 if (ifap->ifa_addr->sa_family != AF_INET in grab_myaddrs() 358 && ifap->ifa_addr->sa_family != AF_INET6 in grab_myaddrs() 383 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs() 394 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs() 486 switch (ifr->ifr_addr.sa_family) { in grab_myaddrs() 561 switch(ifaddr->sa_family) { 585 if (ifaddr->sa_family != AF_INET6) 879 int check_wo_scope_id = (my->sa_family == AF_INET6) && [all …]
|
D | remoteconf.c | 119 if (remote->sa_family != AF_UNSPEC && 124 if (remote->sa_family == AF_UNSPEC) 135 if ((remote->sa_family == AF_UNSPEC 136 && remote->sa_family == p->remote->sa_family) 145 if (p->remote->sa_family == AF_UNSPEC)
|
/external/kernel-headers/original/uapi/linux/ |
D | if_pppox.h | 62 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 76 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 82 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 91 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 97 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
|
D | nfc.h | 239 sa_family_t sa_family; member 247 sa_family_t sa_family; member
|
/external/chromium_org/net/base/ |
D | net_util_posix.cc | 191 if (addr->sa_family == AF_INET6) { in GetNetworkList() 200 } else if (addr->sa_family == AF_INET) { in GetNetworkList() 228 ioctl_socket >= 0 && addr->sa_family == AF_INET6) { in GetNetworkList() 239 connection_type = GetNetworkInterfaceType(addr->sa_family, name); in GetNetworkList() 247 if (interface->ifa_netmask->sa_family == 0) { in GetNetworkList() 248 interface->ifa_netmask->sa_family = addr->sa_family; in GetNetworkList()
|
D | net_util.cc | 540 if (sock_addr->sa_family == AF_INET) { in GetIPAddressFromSockAddr() 552 if (sock_addr->sa_family == AF_INET6) { in GetIPAddressFromSockAddr() 565 if (sock_addr->sa_family == AF_BTH) { in GetIPAddressFromSockAddr() 769 if (addr->sa_family == AF_INET6) { in HaveOnlyLoopbackAddresses() 777 if (addr->sa_family != AF_INET6 && addr->sa_family != AF_INET) in HaveOnlyLoopbackAddresses() 957 if (address->sa_family == AF_INET) { in GetPortFieldFromSockaddr() 962 } else if (address->sa_family == AF_INET6) { in GetPortFieldFromSockaddr()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.h | 59 #define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in)… 60 …((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sock… 62 #define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) …
|
D | mDNSPosix.c | 119 switch (sa->sa_family) in SockAddrTomDNSAddr() 145 verbosedebugf("SockAddrTomDNSAddr: Uknown address family %d\n", sa->sa_family); in SockAddrTomDNSAddr() 639 if (intfAddr->sa_family == AF_INET) *sktPtr = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in SetupSocket() 641 else if (intfAddr->sa_family == AF_INET6) *sktPtr = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP); in SetupSocket() 645 …if (*sktPtr < 0) { err = errno; perror((intfAddr->sa_family == AF_INET) ? "socket AF_INET" : "sock… in SetupSocket() 661 if (intfAddr->sa_family == AF_INET) in SetupSocket() 738 else if (intfAddr->sa_family == AF_INET6) in SetupSocket() 902 if (alias->multicastSocket4 == -1 && intfAddr->sa_family == AF_INET) in SetupOneInterface() 905 else if (alias->multicastSocket6 == -1 && intfAddr->sa_family == AF_INET6) in SetupOneInterface() 961 if ( ((i->ifi_addr->sa_family == AF_INET) in SetupInterfaceList() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 97 if (addr && tmp->addr.sa.sa_family == family) in iface_check() 176 if (addr->sa.sa_family == AF_INET && in iface_allowed() 185 if (addr->sa.sa_family == AF_INET6 && in iface_allowed() 410 new->family = iface->addr.sa.sa_family; in create_bound_listener() 420 if ((new->tcpfd = socket(iface->addr.sa.sa_family, SOCK_STREAM, 0)) == -1 || in create_bound_listener() 421 (new->fd = socket(iface->addr.sa.sa_family, SOCK_DGRAM, 0)) == -1 || in create_bound_listener() 429 if (iface->addr.sa.sa_family == AF_INET6) in create_bound_listener() 446 if (iface->addr.sa.sa_family == AF_INET6 && (errno == ENODEV || errno == EADDRNOTAVAIL) && in create_bound_listener() 467 if ((daemon->options & OPT_TFTP) && iface->addr.sa.sa_family == AF_INET && iface->dhcp_ok) in create_bound_listener() 573 new->family = iface->addr.sa.sa_family; in create_bound_listeners() [all …]
|
D | util.c | 254 if (s1->sa.sa_family == s2->sa.sa_family) in sockaddr_isequal() 256 if (s1->sa.sa_family == AF_INET && in sockaddr_isequal() 261 if (s1->sa.sa_family == AF_INET6 && in sockaddr_isequal() 276 if (addr->sa.sa_family == AF_INET6) in sa_len() 331 if (addr->sa.sa_family == AF_INET) in prettyprint_addr() 336 else if (addr->sa.sa_family == AF_INET6) in prettyprint_addr()
|
D | forward.c | 65 if (to->sa.sa_family == AF_INET) in send_from() 130 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 139 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 159 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 170 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 304 if (start->addr.sa.sa_family == AF_INET6) in forward_query() 350 if (start->addr.sa.sa_family == AF_INET) in forward_query() 487 serveraddr.sa.sa_family = family; in reply_query() 489 if (serveraddr.sa.sa_family == AF_INET6) in reply_query() 636 source_addr.sa.sa_family = listen->family; in receive_query() [all …]
|
D | bpf.c | 86 if (ifr->ifr_addr.sa_family == AF_INET && ipv4_callback) in iface_enumerate() 103 else if (ifr->ifr_addr.sa_family == AF_INET6 && ipv6_callback) in iface_enumerate() 183 ifr->ifr_addr.sa_family = AF_LINK; in send_via_bpf()
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_bsd_addr.c | 448 if (ifa->ifa_addr->sa_family != AF_INET6) { 453 if (ifa->ifa_addr->sa_family != AF_INET) { 458 if ((ifa->ifa_addr->sa_family != AF_INET) && (ifa->ifa_addr->sa_family != AF_INET6)) { 464 if ((ifa->ifa_addr->sa_family == AF_INET6) && 471 if (ifa->ifa_addr->sa_family == AF_INET && 533 if ((ifa->ifa_addr->sa_family != AF_INET) && (ifa->ifa_addr->sa_family != AF_INET6)) { 537 if (ifa->ifa_addr->sa_family == AF_INET6) { 547 if (ifa->ifa_addr->sa_family == AF_INET6) { 605 switch (ifa->ifa_addr->sa_family) { 624 switch (ifa->ifa_addr->sa_family) { [all …]
|
D | sctp_pcb.c | 482 ifa_af = sctp_ifap->address.sa.sa_family; 518 switch (sctp_ifap->address.sa.sa_family) { 609 sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, addr->sa_family); 686 switch (addr->sa_family) { 710 switch (sctp_ifap->address.sa.sa_family) { 982 if (sctp_ifa->address.sa.sa_family != to->sa_family) { 985 switch (sctp_ifa->address.sa.sa_family) { 1091 if (laddr->ifa->address.sa.sa_family != to->sa_family) { 1094 switch (to->sa_family) { 1173 switch (to->sa_family) { [all …]
|
D | sctp_asconf.c | 845 switch (sa->sa_family) { in sctp_asconf_addr_match() 891 switch (sa->sa_family) { in sctp_addr_match() 1129 switch (net->ro._l_addr.sa.sa_family) { in sctp_path_check_and_react() 1273 switch (ifa->address.sa.sa_family) { in sctp_asconf_queue_mgmt() 1488 switch (sa->sa_family) { in sctp_asconf_queue_sa_delete() 1847 if (sa->sa_family != AF_INET6) { in sctp_is_scopeid_in_nets() 1858 if (((struct sockaddr *)(&net->ro._l_addr))->sa_family != in sctp_is_scopeid_in_nets() 1894 switch (ifa->address.sa.sa_family) { in sctp_addr_mgmt_assoc() 1920 if (ifa->address.sa.sa_family == AF_INET6) { in sctp_addr_mgmt_assoc() 1937 switch (ifa->address.sa.sa_family) { in sctp_addr_mgmt_assoc() [all …]
|
/external/mtpd/ |
D | mtpd.h | 30 sa_family_t sa_family; member 38 sa_family_t sa_family; member
|
/external/wpa_supplicant_8/src/drivers/ |
D | linux_ioctl.c | 92 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in linux_get_ifhwaddr() 94 ifname, ifr.ifr_hwaddr.sa_family); in linux_get_ifhwaddr() 110 ifr.ifr_hwaddr.sa_family = ARPHRD_ETHER; in linux_set_ifhwaddr()
|
/external/clang/test/Analysis/ |
D | casts.c | 14 struct sockaddr { sa_family_t sa_family; }; member 24 switch (sockaddr->sa_family) { // no-warning in f()
|
/external/strace/ |
D | sock.c | 46 if (ifr->ifr_addr.sa_family == AF_INET) { in print_addr() 161 ifr.ifr_addr.sa_family, in sock_ioctl() 244 ifra[i].ifr_addr.sa_family, in sock_ioctl()
|
/external/ipsec-tools/src/libipsec/ |
D | pfkey.c | 395 if (src->sa_family != dst->sa_family) { 403 switch (src->sa_family) { 586 if (src->sa_family != dst->sa_family) { 590 switch (src->sa_family) { 1147 if (src->sa_family != dst->sa_family) { 1152 switch (src->sa_family) { 1229 if (sa_parms->src->sa_family != sa_parms->dst->sa_family) { 1233 switch (sa_parms->src->sa_family) { 1506 if (src->sa_family != dst->sa_family) { 1510 switch (src->sa_family) { [all …]
|
/external/libpcap/tests/ |
D | findalldevstest.c | 69 switch(a->addr->sa_family) in ifprint() 112 printf("\tAddress Family: Unknown (%d)\n", a->addr->sa_family); in ifprint()
|
/external/ppp/pppd/ |
D | sys-solaris.c | 1975 ifr.ifr_addr.sa_family = AF_INET; 1981 ifr.ifr_addr.sa_family = AF_INET; 2000 ifr.ifr_dstaddr.sa_family = AF_INET; 2049 rt.rt_dst.sa_family = AF_INET; 2051 rt.rt_gateway.sa_family = AF_INET; 2078 rt.rt_dst.sa_family = AF_INET; 2080 rt.rt_gateway.sa_family = AF_INET; 2107 arpreq.arp_pa.sa_family = AF_INET; 2130 arpreq.arp_pa.sa_family = AF_INET; 2175 if (ifr->ifr_addr.sa_family != AF_INET) [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | plugin.c | 160 sp.sa_family = AF_PPPOX; in PPPOEConnectDevice() 236 sp.sa_family = AF_PPPOX; in PPPOEDisconnectDevice() 308 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in PPPoEDevnameHook()
|
/external/lldb/source/Host/common/ |
D | SocketAddress.cpp | 111 return m_socket_addr.sa.sa_family; in GetFamily() 117 m_socket_addr.sa.sa_family = family; in SetFamily()
|