/external/webrtc/webrtc/base/ |
D | ipaddress.cc | 50 if (family_ == AF_INET) { in v4AddressAsHostOrderInteger() 63 case AF_INET: in Size() 76 if (family_ == AF_INET) { in operator ==() 99 if (family_ == AF_INET && other.family_ == AF_INET6) { in operator <() 106 case AF_INET: { in operator <() 132 if (family_ != AF_INET && family_ != AF_INET6) { in ToString() 152 case AF_INET: { in ToSensitiveString() 190 if (family_ != AF_INET) { in AsIPv6Address() 241 if (info->ai_addr->sa_family == AF_INET) { in IPFromAddrInfo() 258 if (rtc::inet_pton(AF_INET, str.c_str(), &addr) == 0) { in IPFromString() [all …]
|
D | ifaddrs-android.cc | 51 int fd = socket(AF_INET, SOCK_DGRAM, 0); in set_flags() 69 if (msg->ifa_family == AF_INET) { in set_addresses() 71 sa->sin_family = AF_INET; in set_addresses() 88 if (family == AF_INET) { in make_prefixes() 90 mask->sin_family = AF_INET; in make_prefixes() 179 if (family == AF_INET || family == AF_INET6) { in getifaddrs()
|
D | network.cc | 269 if (current_list.ips[0].family() == AF_INET) { in MergeNetworkList() 348 if (ipv4.family() == AF_INET) { in set_default_local_addresses() 358 if (family == AF_INET && !default_local_ipv4_address_.IsNil()) { in GetDefaultLocalAddress() 413 if (cursor->ifa_addr->sa_family != AF_INET && in ConvertIfAddrs() 501 case AF_INET: { in GetPrefix() 572 case AF_INET: { in CreateNetworks() 694 if (network.prefix().family() == AF_INET) { in IsIgnoredNetwork() 769 ASSERT(family == AF_INET || family == AF_INET6); in QueryDefaultLocalAddress() 778 SocketAddress(family == AF_INET ? kPublicIPv4Host : kPublicIPv6Host, in QueryDefaultLocalAddress() 798 set_default_local_addresses(QueryDefaultLocalAddress(AF_INET), in UpdateNetworksOnce() [all …]
|
D | socketaddress.cc | 259 if (ip_.family() != AF_INET) { in ToSockAddr() 263 saddr->sin_family = AF_INET; in ToSockAddr() 273 if (saddr.sin_family != AF_INET) in FromSockAddr() 293 } else if (addr->ss_family == AF_INET) { in ToSockAddrStorageHelper() 315 if (addr.ss_family == AF_INET) { in SocketAddressFromSockAddrStorage() 331 if (family == AF_INET) { in EmptySocketAddressWithFamily()
|
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/ |
D | inet.py | 26 AF_INET = socket.AF_INET variable 49 if family == AF_INET: 67 if family == AF_INET: 84 return AF_INET
|
/external/compiler-rt/test/tsan/ |
D | fd_socket_connect_norace.cc | 15 int c = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in ClientThread() 26 int s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 27 addr.sin_family = AF_INET; in main() 28 inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr); in main()
|
D | fd_socket_norace.cc | 16 int c = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in ClientThread() 30 int s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 31 addr.sin_family = AF_INET; in main() 32 inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr); in main()
|
/external/autotest/client/site_tests/kernel_ProtocolCheck/ |
D | kernel_ProtocolCheck.py | 37 Protocol('UDP-Lite', socket.AF_INET, socket.SOCK_DGRAM, 39 Protocol('PING', socket.AF_INET, socket.SOCK_DGRAM, 41 Protocol('RAW', socket.AF_INET, socket.SOCK_RAW, 0), 42 Protocol('UDP', socket.AF_INET, socket.SOCK_DGRAM, 0), 43 Protocol('TCP', socket.AF_INET, socket.SOCK_STREAM, 0),
|
/external/avahi/avahi-core/ |
D | addr-util.c | 37 assert(sa->sa_family == AF_INET || sa->sa_family == AF_INET6); in avahi_address_from_sockaddr() 41 if (sa->sa_family == AF_INET) in avahi_address_from_sockaddr() 52 assert(sa->sa_family == AF_INET || sa->sa_family == AF_INET6); in avahi_port_from_sockaddr() 54 if (sa->sa_family == AF_INET) in avahi_port_from_sockaddr()
|
/external/c-ares/ |
D | ares_getnameinfo.c | 104 if ((sa->sa_family == AF_INET) && in ares_getnameinfo() 166 ares_inet_ntop(AF_INET, &addr->sin_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo() 188 if (sa->sa_family == AF_INET) in ares_getnameinfo() 190 niquery->family = AF_INET; in ares_getnameinfo() 193 sizeof(struct in_addr), AF_INET, in ares_getnameinfo() 221 if (niquery->family == AF_INET) in nameinfo_callback() 256 if (niquery->family == AF_INET) in nameinfo_callback() 257 ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf, in nameinfo_callback() 271 if (niquery->family == AF_INET) in nameinfo_callback()
|
D | ares_gethostbyaddr.c | 76 if (family != AF_INET && family != AF_INET6) in ares_gethostbyaddr() 82 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addrV4)) || in ares_gethostbyaddr() 96 if (family == AF_INET) in ares_gethostbyaddr() 153 if (aquery->addr.family == AF_INET) in addr_callback() 157 (int)addrlen, AF_INET, &host); in addr_callback() 250 if (addr->family == AF_INET) in file_lookup() 274 if (addr->family == AF_INET) in ptr_rr_name()
|
D | ares_gethostbyname.c | 95 case AF_INET: in ares_gethostbyname() 153 hquery->sent_family = AF_INET; in next_lookup() 188 if (hquery->sent_family == AF_INET) in host_callback() 202 hquery->sent_family = AF_INET; in host_callback() 217 hquery->sent_family = AF_INET; in host_callback() 250 if (family == AF_INET || family == AF_INET6) in fake_hostent() 274 family = AF_INET; in fake_hostent() 282 if (family == AF_INET) in fake_hostent() 459 if (sortlist[i].family != AF_INET) in get_address_index()
|
D | ahost.c | 68 int status, nfds, c, addr_family = AF_INET; in main() 98 addr_family = AF_INET; in main() 126 if (ares_inet_pton(AF_INET, *argv, &addr4) == 1) in main() 128 ares_gethostbyaddr(channel, &addr4, sizeof(addr4), AF_INET, callback, in main()
|
/external/valgrind/memcheck/tests/solaris/ |
D | ioctl.c | 16 int fd = socket(AF_INET, SOCK_DGRAM, 0); in test_SIOCGIFCONF() 49 int fd = socket(AF_INET, SOCK_DGRAM, 0); in test_SIOCGLIFCONF() 54 lifn.lifn_family = AF_INET; in test_SIOCGLIFCONF() 60 lifc.lifc_family = AF_INET; in test_SIOCGLIFCONF()
|
/external/valgrind/none/tests/ |
D | fdleak_ipv4.stderr.exp | 4 Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:... 7 Open AF_INET socket 3: 127.0.0.1:... <-> unbound 22 Open AF_INET socket 3: 127.0.0.1:... <-> 127.0.0.1:...
|
/external/libnl/lib/ |
D | addr.c | 271 case AF_INET: in nl_addr_parse() 276 family = AF_INET; in nl_addr_parse() 298 if (hint == AF_INET || hint == AF_UNSPEC) { in nl_addr_parse() 299 if (inet_pton(AF_INET, str, buf) > 0) { in nl_addr_parse() 300 family = AF_INET; in nl_addr_parse() 304 if (hint == AF_INET) { in nl_addr_parse() 574 case AF_INET: in nl_addr_valid() 605 return AF_INET; in nl_addr_guess_family() 632 case AF_INET: { in nl_addr_fill_sockaddr() 844 case AF_INET: in nl_addr2str() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 101 if (family == AF_INET && in iface_check() 180 if (addr->sa.sa_family == AF_INET && in iface_allowed() 181 !iface_check(AF_INET, (struct all_addr *)&addr->in.sin_addr, ifr.ifr_name, NULL)) in iface_allowed() 250 addr.in.sin_family = AF_INET; in iface_allowed_v4() 341 addr.in.sin_family = AF_INET; in create_wildcard_listeners() 351 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || in create_wildcard_listeners() 352 (tcpfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) in create_wildcard_listeners() 378 if ((tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in create_wildcard_listeners() 394 l->family = AF_INET; in create_wildcard_listeners() 484 if ((daemon->options & OPT_TFTP) && iface->addr.sa.sa_family == AF_INET && iface->dhcp_ok) in create_bound_listener() [all …]
|
/external/strace/tests/ |
D | ip_mreq.c | 45 inet_pton(AF_INET, "224.0.0.3", &m4.imr_multiaddr); in main() 46 inet_pton(AF_INET, "127.0.0.1", &m4.imr_interface); in main() 51 assert(socket(AF_INET, SOCK_DGRAM, 0) == 0); in main()
|
/external/valgrind/memcheck/tests/ |
D | sendmsg.c | 19 fd = socket (AF_INET, SOCK_DGRAM, 0); in main() 26 sa.sin_family = AF_INET; in main() 52 fd = socket (AF_INET, SOCK_DGRAM, 0); in main()
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept() 77 sa4.sin_family = AF_INET; in ConnectAndAccept() 78 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in ConnectAndAccept() 175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() 180 sa4.sin_family = AF_INET; in CreateServerConnectAndAccept() 181 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in CreateServerConnectAndAccept() 314 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept() 320 sa4.sin_family = AF_INET; in ThreadedCreateServerConnectAndAccept()
|
/external/iproute2/ip/ |
D | rtmon.c | 91 family = AF_INET; in main() 103 family = AF_INET; in main() 144 if (!family || family == AF_INET) in main() 150 if (!family || family == AF_INET) in main()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_unity.c | 293 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40); 294 inet_ntop(AF_INET, &netentry->network.mask4, tmp2, 40); 372 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40); 373 inet_ntop(AF_INET, &netentry->network.mask4, tmp2, 40); 391 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40); 392 inet_ntop(AF_INET, &netentry->network.mask4, tmp2, 40);
|
/external/iproute2/tc/ |
D | m_nat.c | 60 if (get_prefix_1(&addr, *argv, AF_INET)) in parse_nat_args() 68 if (get_prefix_1(&addr, *argv, AF_INET)) in parse_nat_args() 193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)), in print_nat() 195 format_host(AF_INET, 4, &sel->new_addr, buf2, sizeof(buf2)), in print_nat()
|
/external/toybox/toys/pending/ |
D | ip.c | 357 *af = AF_INET; in get_prefix() 358 if (family != AF_UNSPEC && family != AF_INET) return 1; in get_prefix() 389 if (naf == AF_INET) { in get_nmask_prefix() 420 else if (af == AF_INET && *addr) *netmask = 32; in parse_prefix() 644 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in link_set() 754 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in print_link_output() 851 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info() 858 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info() 996 if (ifa->ifa_family == AF_INET) strcpy(family, " inet "); in print_addrinfo() 1030 if (ifa->ifa_family == AF_INET) in print_addrinfo() [all …]
|
/external/strace/ |
D | socketutils.c | 102 case AF_INET: in inet_parse_response() 320 r = inet_print(fd, AF_INET, IPPROTO_TCP, inode, "TCP"); in print_sockaddr_by_inode() 322 r = inet_print(fd, AF_INET, IPPROTO_UDP, inode, "UDP"); in print_sockaddr_by_inode() 335 { AF_INET, IPPROTO_TCP, "TCP" }, in print_sockaddr_by_inode() 336 { AF_INET, IPPROTO_UDP, "UDP" }, in print_sockaddr_by_inode()
|