Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 25 of 494) sorted by relevance

12345678910>>...20

/external/webrtc/webrtc/base/
Dipaddress.cc50 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 …]
Difaddrs-android.cc51 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()
Dnetwork.cc269 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 …]
Dsocketaddress.cc259 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/
Dinet.py26 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/
Dfd_socket_connect_norace.cc15 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()
Dfd_socket_norace.cc16 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/
Dkernel_ProtocolCheck.py37 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/
Daddr-util.c37 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/
Dares_getnameinfo.c104 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()
Dares_gethostbyaddr.c76 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()
Dares_gethostbyname.c95 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()
Dahost.c68 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/
Dioctl.c16 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/
Dfdleak_ipv4.stderr.exp4 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/
Daddr.c271 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/
Dnetwork.c101 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/
Dip_mreq.c45 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/
Dsendmsg.c19 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/
Dipv6connect.c72 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/
Drtmon.c91 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/
Disakmp_unity.c293 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/
Dm_nat.c60 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/
Dip.c357 *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/
Dsocketutils.c102 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()

12345678910>>...20