Home
last modified time | relevance | path

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

12345678910>>...16

/external/libppp/src/
Dncpaddr.c198 case AF_INET: in ncpaddr_isdefault()
221 case AF_INET: in ncpaddr_equal()
241 case AF_INET: in ncpaddr_copy()
242 addr->ncpaddr_family = AF_INET; in ncpaddr_copy()
259 addr->ncpaddr_family = AF_INET; in ncpaddr_setip4addr()
266 if (addr->ncpaddr_family != AF_INET) in ncpaddr_getip4addr()
275 addr->ncpaddr_family = AF_INET; in ncpaddr_setip4()
282 if (addr->ncpaddr_family != AF_INET) in ncpaddr_getip4()
317 case AF_INET: in ncpaddr_getsa()
318 host4->sin_family = AF_INET; in ncpaddr_getsa()
[all …]
Darp.c115 routes = ID0socket(PF_ROUTE, SOCK_RAW, AF_INET); in arp_ProxySub()
128 arpmsg.dst.sin_family = AF_INET; in arp_ProxySub()
190 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in arp_SetProxy()
210 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in arp_ClearProxy()
287 if (sa[RTAX_IFA]->sa_family == AF_INET) { in arp_EtherAddr()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dipaddress.cc67 if (family_ == AF_INET) { in v4AddressAsHostOrderInteger()
76 case AF_INET: in Size()
89 if (family_ == AF_INET) { in operator ==()
112 if (family_ == AF_INET && other.family_ == AF_INET6) { in operator <()
119 case AF_INET: { in operator <()
145 if (family_ != AF_INET && family_ != AF_INET6) { in ToString()
164 case AF_INET: { in ToSensitiveString()
194 if (family_ != AF_INET) { in AsIPv6Address()
225 if (info->ai_addr->sa_family == AF_INET) { in IPFromAddrInfo()
242 if (talk_base::inet_pton(AF_INET, str.c_str(), &addr) == 0) { in IPFromString()
[all …]
Difaddrs-android.cc64 int fd = socket(AF_INET, SOCK_DGRAM, 0); in set_flags()
82 if (msg->ifa_family == AF_INET) { in set_addresses()
84 sa->sin_family = AF_INET; in set_addresses()
101 if (family == AF_INET) { in make_prefixes()
103 mask->sin_family = AF_INET; in make_prefixes()
192 if (family == AF_INET || family == AF_INET6) { in getifaddrs()
Dsocketaddress.cc279 if (ip_.family() != AF_INET) { in ToSockAddr()
283 saddr->sin_family = AF_INET; in ToSockAddr()
293 if (saddr.sin_family != AF_INET) in FromSockAddr()
311 } else if (addr->ss_family == AF_INET) { in ToSockAddrStorageHelper()
338 if (talk_base::inet_pton(AF_INET, hostname.c_str(), &addr) == 0) in StringToIP()
346 if (talk_base::inet_pton(AF_INET, hostname.c_str(), &addr4) > 0) { in StringToIP()
374 if (addr.ss_family == AF_INET) { in SocketAddressFromSockAddrStorage()
390 if (family == AF_INET) { in EmptySocketAddressWithFamily()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Dsocket_test.cc247 EXPECT_LT(ki_socket(AF_INET, SOCK_RAW, 0), 0); in TEST_F()
253 EXPECT_LT(ki_socketpair(AF_INET, SOCK_STREAM, 0, NULL), 0); in TEST_F()
257 EXPECT_LT(ki_socketpair(AF_INET, SOCK_STREAM, 0, sv), 0); in TEST_F()
333 EXPECT_TRUE(NULL != inet_ntop(AF_INET, &real_addr, in TEST()
338 EXPECT_TRUE(NULL != inet_ntop(AF_INET, &real_addr, in TEST()
343 EXPECT_TRUE(NULL != inet_ntop(AF_INET, &real_addr, in TEST()
389 EXPECT_TRUE(NULL == inet_ntop(AF_INET, &ipv4_addr, in TEST()
404 { AF_INET, "127.127.12.0", NULL }, in TEST()
405 { AF_INET, "0.0.0.0", NULL }, in TEST()
438 EXPECT_EQ(0, inet_pton(AF_INET, "127.127.12.24312", &addr)); in TEST()
[all …]
/external/compiler-rt/lib/tsan/lit_tests/
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/chromium_org/net/base/
Daddress_tracker_linux_unittest.cc148 MakeAddrMessage(RTM_NEWADDR, IFA_F_TEMPORARY, AF_INET, kAddr0, kEmpty, in TEST_F()
157 MakeAddrMessage(RTM_NEWADDR, IFA_F_HOMEADDRESS, AF_INET, kAddr1, kAddr2, in TEST_F()
179 MakeAddrMessage(RTM_NEWADDR, IFA_F_TEMPORARY, AF_INET, kAddr0, kEmpty, in TEST_F()
188 MakeAddrMessage(RTM_NEWADDR, IFA_F_HOMEADDRESS, AF_INET, kAddr0, kEmpty, in TEST_F()
198 MakeAddrMessage(RTM_NEWADDR, IFA_F_TEMPORARY, AF_INET, kAddr0, kEmpty, in TEST_F()
200 MakeAddrMessage(RTM_NEWADDR, IFA_F_HOMEADDRESS, AF_INET, kAddr0, kEmpty, in TEST_F()
212 MakeAddrMessage(RTM_NEWADDR, IFA_F_TEMPORARY, AF_INET, kAddr0, kAddr0, in TEST_F()
233 MakeAddrMessage(RTM_NEWADDR, 0, AF_INET, kAddr0, kEmpty, &buffer); in TEST_F()
234 MakeAddrMessage(RTM_NEWADDR, 0, AF_INET, kAddr1, kAddr2, &buffer); in TEST_F()
240 MakeAddrMessage(RTM_DELADDR, 0, AF_INET, kEmpty, kAddr0, &buffer); in TEST_F()
[all …]
Daddress_list_unittest.cc25 address.sin_family = AF_INET; in TEST()
28 ai.ai_family = AF_INET; in TEST()
55 addr->sin_family = AF_INET; in TEST()
100 AF_INET, in TEST()
114 AF_INET, in TEST()
/external/openssh/
Daddrmatch.c55 case AF_INET: in addr_unicast_masklen()
68 case AF_INET: in masklen_valid()
90 case AF_INET: in addr_sa_to_xaddr()
93 xa->af = AF_INET; in addr_sa_to_xaddr()
127 case AF_INET: in addr_netmask()
128 n->af = AF_INET; in addr_netmask()
160 case AF_INET: in addr_and()
186 case AF_INET: in addr_cmp()
243 case AF_INET: in addr_invert()
278 case AF_INET: in addr_is_all0s()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
Dsocket_test.cc42 addr->sin_family = AF_INET; in IP4ToSockAddr()
96 sock1_ = ki_socket(AF_INET, SOCK_DGRAM, 0); in SetUp()
97 sock2_ = ki_socket(AF_INET, SOCK_DGRAM, 0); in SetUp()
109 sock1_ = ki_socket(AF_INET, SOCK_STREAM, 0); in SetUp()
110 sock2_ = ki_socket(AF_INET, SOCK_STREAM, 0); in SetUp()
148 sock_ = ki_socket(AF_INET, SOCK_STREAM, 0); in SetUp()
180 EXPECT_EQ(-1, ki_socket(AF_INET, SOCK_RAW, IPPROTO_TCP)); in TEST()
184 EXPECT_EQ(-1, ki_socket(AF_INET, -1, 0)); in TEST()
187 int sock1_ = ki_socket(AF_INET, SOCK_DGRAM, 0); in TEST()
193 int sock3 = ki_socket(AF_INET, SOCK_STREAM, 0); in TEST()
[all …]
/external/openssl/apps/
Ds_socket.c256 them.sin_family=AF_INET; in init_client_ip()
266 s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL); in init_client_ip()
268 s=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); in init_client_ip()
334 server.sin_family=AF_INET; in init_server_long()
347 s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL); in init_server_long()
349 s=socket(AF_INET, SOCK_DGRAM,IPPROTO_UDP); in init_server_long()
437 sizeof(from.sin_addr.s_addr),AF_INET); in do_accept()
440 sizeof(struct in_addr),AF_INET); in do_accept()
463 if (h2->h_addrtype != AF_INET) in do_accept()
530 if ((short)he->h_addrtype != AF_INET) in host_ip()
/external/chromium_org/third_party/openssl/openssl/apps/
Ds_socket.c256 them.sin_family=AF_INET; in init_client_ip()
266 s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL); in init_client_ip()
268 s=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); in init_client_ip()
334 server.sin_family=AF_INET; in init_server_long()
347 s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL); in init_server_long()
349 s=socket(AF_INET, SOCK_DGRAM,IPPROTO_UDP); in init_server_long()
437 sizeof(from.sin_addr.s_addr),AF_INET); in do_accept()
440 sizeof(struct in_addr),AF_INET); in do_accept()
463 if (h2->h_addrtype != AF_INET) in do_accept()
530 if ((short)he->h_addrtype != AF_INET) in host_ip()
/external/valgrind/main/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/wpa_supplicant_8/src/utils/
Dip_addr.c20 if (addr->af == AF_INET) { in hostapd_ip_txt()
44 case AF_INET: in hostapd_ip_diff()
64 addr->af = AF_INET; in hostapd_parse_ip_addr()
/external/dnsmasq/src/
Dnetwork.c99 if (family == AF_INET && in iface_check()
176 if (addr->sa.sa_family == AF_INET && in iface_allowed()
177 !iface_check(AF_INET, (struct all_addr *)&addr->in.sin_addr, ifr.ifr_name, NULL)) in iface_allowed()
237 addr.in.sin_family = AF_INET; in iface_allowed_v4()
327 addr.in.sin_family = AF_INET; in create_wildcard_listeners()
337 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || in create_wildcard_listeners()
338 (tcpfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) in create_wildcard_listeners()
364 if ((tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in create_wildcard_listeners()
380 l->family = AF_INET; in create_wildcard_listeners()
467 if ((daemon->options & OPT_TFTP) && iface->addr.sa.sa_family == AF_INET && iface->dhcp_ok) in create_bound_listener()
[all …]
/external/iproute2/ip/
Drtmon.c85 family = AF_INET; in main()
97 family = AF_INET; in main()
138 if (!family || family == AF_INET) in main()
144 if (!family || family == AF_INET) in main()
Dipmroute.c119 format_host(AF_INET, 4, &msrc.data[0], sbuf, sizeof(sbuf)), in read_mroute_list()
120 format_host(AF_INET, 4, &maddr.data[0], mbuf, sizeof(mbuf))); in read_mroute_list()
175 get_prefix(&filter.msrc, *argv, AF_INET); in mroute_list()
182 get_prefix(&filter.mdst, *argv, AF_INET); in mroute_list()
/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/chromium_org/net/ftp/
Dftp_network_transaction_unittest.cc784 if (GetFamily() == AF_INET) { in FtpNetworkTransactionTest()
812 ctrl_socket->set_use_epsv((GetFamily() != AF_INET)); in ExecuteTransaction()
924 EXPECT_EQ((GetFamily() == AF_INET) ? "127.0.0.1" : "::1", in TEST_P()
1000 EXPECT_EQ((GetFamily() == AF_INET) ? "127.0.0.1" : "::1", in TEST_P()
1109 ctrl_socket.set_use_epsv(GetFamily() != AF_INET); in TEST_P()
1146 if (GetFamily() == AF_INET) in TEST_P()
1156 if (GetFamily() == AF_INET) in TEST_P()
1166 if (GetFamily() == AF_INET) in TEST_P()
1176 if (GetFamily() == AF_INET) in TEST_P()
1186 if (GetFamily() == AF_INET) in TEST_P()
[all …]
/external/netperf/
Dnetsh.c218 int af = AF_INET;
370 return(AF_INET); in parse_address_family()
769 address_family = AF_INET; in scan_cmd_line()
770 local_address_family = AF_INET; in scan_cmd_line()
792 case AF_INET: in scan_cmd_line()
799 case AF_INET: in scan_cmd_line()
830 case AF_INET: in scan_cmd_line()
835 case AF_INET: in scan_cmd_line()
/external/openssh/openbsd-compat/
Dfake-rfc2553.c54 if (sa->sa_family != AF_UNSPEC && sa->sa_family != AF_INET) in getnameinfo()
71 sizeof(struct in_addr), AF_INET); in getnameinfo()
137 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai()
167 hints->ai_family != AF_INET) in getaddrinfo()
/external/chromium/net/base/
Dip_endpoint.cc33 return AF_INET; in GetFamily()
56 addr->sin_family = AF_INET; in ToSockAddr()
85 case AF_INET: { in FromSockAddr()

12345678910>>...16