/external/libcups/cups/ |
D | http-addr.c | 44 if (addr->addr.sa_family == AF_INET6 && in httpAddrAny() 49 if (addr->addr.sa_family == AF_INET && in httpAddrAny() 80 if (addr && addr->addr.sa_family == AF_LOCAL) in httpAddrClose() 104 if (addr1->addr.sa_family != addr2->addr.sa_family) in httpAddrEqual() 108 if (addr1->addr.sa_family == AF_LOCAL) in httpAddrEqual() 113 if (addr1->addr.sa_family == AF_INET6) in httpAddrEqual() 134 if (addr->addr.sa_family == AF_INET6) in httpAddrLength() 139 if (addr->addr.sa_family == AF_LOCAL) in httpAddrLength() 143 if (addr->addr.sa_family == AF_INET) in httpAddrLength() 178 if ((fd = socket(addr->addr.sa_family, SOCK_STREAM, 0)) < 0) in httpAddrListen() [all …]
|
/external/honggfuzz/libhfnetdriver/ |
D | netdriver.c | 39 sa_family_t sa_family; member 44 .sa_family = AF_UNSPEC, 111 static void netDriver_bindToRndLoopback(int sock, sa_family_t sa_family) { in netDriver_bindToRndLoopback() argument 112 if (sa_family != AF_INET) { in netDriver_bindToRndLoopback() 126 int sock = socket(addr->sa_family, SOCK_STREAM, 0); in netDriver_sockConnAddr() 128 PLOG_D("socket(type=%d for dst_addr='%s', SOCK_STREAM, 0)", addr->sa_family, in netDriver_sockConnAddr() 143 netDriver_bindToRndLoopback(sock, addr->sa_family); in netDriver_sockConnAddr() 154 int netDriver_sockConnLoopback(sa_family_t sa_family, uint16_t portno) { in netDriver_sockConnLoopback() argument 159 if (sa_family == AF_INET) { in netDriver_sockConnLoopback() 169 if (sa_family == AF_INET6) { in netDriver_sockConnLoopback() [all …]
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 49 if (addr->sa_family == GRPC_AF_INET6) { in grpc_sockaddr_is_v4mapped() 77 if (addr->sa_family == GRPC_AF_INET) { in grpc_sockaddr_to_v4mapped() 99 if (addr->sa_family == GRPC_AF_INET) { in grpc_sockaddr_is_wildcard() 108 } else if (addr->sa_family == GRPC_AF_INET6) { in grpc_sockaddr_is_wildcard() 170 if (addr->sa_family == GRPC_AF_INET) { in grpc_sockaddr_to_string() 175 } else if (addr->sa_family == GRPC_AF_INET6) { in grpc_sockaddr_to_string() 182 if (ip != nullptr && grpc_inet_ntop(addr->sa_family, ip, ntop_buf, in grpc_sockaddr_to_string() 194 ret = gpr_asprintf(out, "(sockaddr family=%d)", addr->sa_family); in grpc_sockaddr_to_string() 243 switch (addr->sa_family) { in grpc_sockaddr_get_uri_scheme() 257 return addr->sa_family; in grpc_sockaddr_get_family() [all …]
|
D | unix_sockets_posix.cc | 72 return addr->sa_family == AF_UNIX; in grpc_is_unix_socket() 79 if (addr->sa_family != AF_UNIX) { in grpc_unlink_if_unix_domain_socket() 95 if (addr->sa_family != AF_UNIX) { in grpc_sockaddr_to_uri_unix_if_possible()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 99 if (addr1->sa_family != addr2->sa_family) 103 || addr1->sa_family != addr2->sa_family) 108 switch (addr1->sa_family) { 153 if (addr1->sa_family != addr2->sa_family) 157 || addr1->sa_family != addr2->sa_family) 162 switch (addr1->sa_family) { 218 if (addr1->sa_family != addr2->sa_family) 222 || addr1->sa_family != addr2->sa_family) 227 switch (addr1->sa_family) { 266 int s = socket(remote->sa_family, SOCK_DGRAM, 0); in getlocaladdr() [all …]
|
D | grabmyaddr.c | 196 I->ifa_addr->sa_family = m->ifa_family; in recvaddrs() 323 if (p->addr->sa_family != q->addr->sa_family) 360 if (ifap->ifa_addr->sa_family != AF_INET in grab_myaddrs() 362 && ifap->ifa_addr->sa_family != AF_INET6 in grab_myaddrs() 387 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs() 398 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs() 499 switch (ifr->ifr_addr.sa_family) { in grab_myaddrs() 579 switch(ifaddr->sa_family) { 603 if (ifaddr->sa_family != AF_INET6) 900 int check_wo_scope_id = (my->sa_family == AF_INET6) && [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | if_pppox.h | 66 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 80 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 86 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 95 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member 101 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */ member
|
/external/strace/tests-mx32/ |
D | net.expected | 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net… 5 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 6 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +accept4?\(0, \{sa_family=AF_(LOCAL|UNIX|FILE)\}, \[19->2… 7 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
D | sun_path.expected | 1 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="123… 2 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
/external/strace/tests-m32/ |
D | net.expected | 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net… 5 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 6 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +accept4?\(0, \{sa_family=AF_(LOCAL|UNIX|FILE)\}, \[19->2… 7 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
D | sun_path.expected | 1 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="123… 2 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
/external/strace/tests/ |
D | net.expected | 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net… 5 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 6 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +accept4?\(0, \{sa_family=AF_(LOCAL|UNIX|FILE)\}, \[19->2… 7 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
D | sun_path.expected | 1 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="123… 2 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_pa… 3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
|
/external/dnsmasq/src/ |
D | network.c | 84 if (addr && tmp->addr.sa.sa_family == family) { in iface_check() 151 if (addr->sa.sa_family == AF_INET && in iface_allowed() 160 if (addr->sa.sa_family == AF_INET6 && in iface_allowed() 358 new->family = iface->addr.sa.sa_family; in create_bound_listener() 366 if ((new->tcpfd = socket(iface->addr.sa.sa_family, SOCK_STREAM, 0)) == -1 || in create_bound_listener() 367 (new->fd = socket(iface->addr.sa.sa_family, SOCK_DGRAM, 0)) == -1 || in create_bound_listener() 374 if (iface->addr.sa.sa_family == AF_INET6) { in create_bound_listener() 391 if (iface->addr.sa.sa_family == AF_INET6 && in create_bound_listener() 515 new->family = iface->addr.sa.sa_family; in create_bound_listeners() 523 if ((new->tcpfd = socket(iface->addr.sa.sa_family, SOCK_STREAM, 0)) == -1 || in create_bound_listeners() [all …]
|
D | forward.c | 61 if (to->sa.sa_family == AF_INET) { in send_from() 121 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 128 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 144 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 153 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 268 if (start->addr.sa.sa_family == AF_INET6) { in forward_query() 302 if (start->addr.sa.sa_family == AF_INET) in forward_query() 421 serveraddr.sa.sa_family = family; in reply_query() 423 if (serveraddr.sa.sa_family == AF_INET6) serveraddr.in6.sin6_flowinfo = 0; in reply_query() 547 source_addr.sa.sa_family = listen->family; in receive_query() [all …]
|
/external/openssh/openbsd-compat/ |
D | bindresvport.c | 72 af = sa->sa_family; in bindresvport_sa() 75 af = sa->sa_family; in bindresvport_sa() 89 sa->sa_family = af; in bindresvport_sa()
|
D | rresvport.c | 82 sa->sa_family = af; in rresvport_af() 99 sa->sa_family = af; in rresvport_af()
|
/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) …
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso.c | 520 addr->sa_family == AF_INET ? 4 : 6, in run_one() 541 mss = addr->sa_family == AF_INET ? CONST_MSS_V4 : CONST_MSS_V6; in run_one() 569 tests = addr->sa_family == AF_INET ? testcases_v4 : testcases_v6; in run_all() 584 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test() 595 fdt = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test() 600 set_pmtu_discover(fdt, addr->sa_family == AF_INET); in run_test() 609 set_route_mtu(CONST_MTU_TEST, addr->sa_family == AF_INET); in run_test() 614 val = get_path_mtu(fdt, addr->sa_family == AF_INET); in run_test()
|
/external/strace/ |
D | sockaddr.c | 64 #define SIZEOF_SA_FAMILY sizeof(((struct sockaddr *) 0)->sa_family) 622 printxval_index(addrfams, sa->sa_family, "AF_???"); in print_sockaddr() 627 if (sa->sa_family < ARRAY_SIZE(sa_printers) in print_sockaddr() 628 && sa_printers[sa->sa_family].printer in print_sockaddr() 629 && addrlen >= sa_printers[sa->sa_family].min_len) { in print_sockaddr() 630 sa_printers[sa->sa_family].printer(buf, addrlen); in print_sockaddr() 663 return addrbuf.sa.sa_family; in decode_sockaddr()
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.c | 348 if (addr1->sa.sa_family != addr2->sa.sa_family) in cmp_addr() 350 switch (addr1->sa.sa_family) { in cmp_addr() 363 "invalid address type %d", addr1->sa.sa_family); in cmp_addr() 394 switch (sa_addr->sa_family) { in test_peer_addr()
|
/external/ipsec-tools/src/libipsec/ |
D | pfkey.c | 393 if (src->sa_family != dst->sa_family) { in pfkey_send_getspi() 401 switch (src->sa_family) { in pfkey_send_getspi() 577 if (src->sa_family != dst->sa_family) { in pfkey_send_delete_all() 581 switch (src->sa_family) { in pfkey_send_delete_all() 1086 if (src->sa_family != dst->sa_family) { in pfkey_send_migrate() 1091 switch (src->sa_family) { in pfkey_send_migrate() 1167 if (sa_parms->src->sa_family != sa_parms->dst->sa_family) { in pfkey_send_x1() 1171 switch (sa_parms->src->sa_family) { in pfkey_send_x1() 1441 if (src->sa_family != dst->sa_family) { in pfkey_send_x2() 1445 switch (src->sa_family) { in pfkey_send_x2() [all …]
|
/external/curl/lib/ |
D | if2ip.c | 69 if(sa->sa_family == AF_INET6) { in Curl_ipv6_scope() 118 if(iface->ifa_addr->sa_family == af) { in Curl_if2ip() 207 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip()
|
/external/mtpd/ |
D | mtpd.h | 30 sa_family_t sa_family; member 38 sa_family_t sa_family; member
|
/external/toybox/toys/net/ |
D | ifconfig.c | 143 if (ifre.ifr_hwaddr.sa_family == types[i].type) break; in display_ifconfig() 145 if(ifre.ifr_hwaddr.sa_family == ARPHRD_ETHER) { in display_ifconfig() 157 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig() 431 if (!strcmp("ether", *++argv)) sock->sa_family = ARPHRD_ETHER; in ifconfig_main() 433 sock->sa_family = ARPHRD_INFINIBAND; in ifconfig_main() 438 if (!sock->sa_family || !argv[1]) help_exit("bad hw '%s'", *argv); in ifconfig_main() 459 if (sock->sa_family == ARPHRD_INFINIBAND && !strchr(ifre.ifr_name, '/')) { in ifconfig_main()
|