Home
last modified time | relevance | path

Searched refs:inet_pton (Results 1 – 25 of 185) sorted by relevance

12345678

/external/scapy/scapy/
Dutils6.py165 naddr = inet_pton(socket.AF_INET6, addr)
221 ifaceid = inet_pton(socket.AF_INET6, "::"+ifaceid)[8:16]
239 mask = inet_pton(socket.AF_INET6, "::ffff:ffff:ffff:ffff")
240 x = in6_and(mask, inet_pton(socket.AF_INET6, addr))
288 addr = inet_pton(socket.AF_INET6, addr)
327 addr = inet_pton(socket.AF_INET, addr)
339 addr = inet_pton(socket.AF_INET6, addr)
370 eui64 = inet_pton(socket.AF_INET6, '::' + in6_mactoifaceid(mac))[8:]
400 s = inet_pton(socket.AF_INET6, "::"+ifaceid)[8:] + previous
444 d=struct.unpack("!IIII", inet_pton(socket.AF_INET6, addr))
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lpm_map.c358 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr()
363 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr()
368 inet_pton(AF_INET, "192.168.128.0", key_ipv4->data); in test_lpm_ipaddr()
373 inet_pton(AF_INET, "192.168.1.0", key_ipv4->data); in test_lpm_ipaddr()
378 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr()
383 inet_pton(AF_INET6, "2a00:1450:4001:814::200e", key_ipv6->data); in test_lpm_ipaddr()
391 inet_pton(AF_INET, "192.168.128.23", key_ipv4->data); in test_lpm_ipaddr()
395 inet_pton(AF_INET, "192.168.0.1", key_ipv4->data); in test_lpm_ipaddr()
399 inet_pton(AF_INET6, "2a00:1450:4001:814::", key_ipv6->data); in test_lpm_ipaddr()
403 inet_pton(AF_INET6, "2a00:1450:4001:814::1", key_ipv6->data); in test_lpm_ipaddr()
[all …]
/external/strace/tests/
Dnetlink_sock_diag.c388 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_sockid()
389 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_sockid()
411 if (!inet_pton(AF_INET6, address6, &req.id.idiag_src) || in test_inet_diag_sockid()
412 !inet_pton(AF_INET6, address6, &req.id.idiag_dst)) in test_inet_diag_sockid()
454 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req()
455 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req()
496 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req_v2()
497 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req_v2()
541 if (!inet_pton(AF_INET, address, &msg.id.idiag_src) || in test_inet_diag_msg()
542 !inet_pton(AF_INET, address, &msg.id.idiag_dst)) in test_inet_diag_msg()
[all …]
Dip_mreq.c54 inet_pton(AF_INET, multi4addr, &m4->imr_multiaddr); in main()
55 inet_pton(AF_INET, interface, &m4->imr_interface); in main()
56 inet_pton(AF_INET6, multi6addr, &m6->ipv6mr_multiaddr); in main()
Dnlattr_inet_diag_req_compat.c61 if (!inet_pton(AF_INET, address, req->id.idiag_src) || in init_inet_diag_req()
62 !inet_pton(AF_INET, address, req->id.idiag_dst)) in init_inet_diag_req()
/external/strace/tests-mx32/
Dnetlink_sock_diag.c388 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_sockid()
389 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_sockid()
411 if (!inet_pton(AF_INET6, address6, &req.id.idiag_src) || in test_inet_diag_sockid()
412 !inet_pton(AF_INET6, address6, &req.id.idiag_dst)) in test_inet_diag_sockid()
454 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req()
455 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req()
496 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req_v2()
497 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req_v2()
541 if (!inet_pton(AF_INET, address, &msg.id.idiag_src) || in test_inet_diag_msg()
542 !inet_pton(AF_INET, address, &msg.id.idiag_dst)) in test_inet_diag_msg()
[all …]
Dip_mreq.c54 inet_pton(AF_INET, multi4addr, &m4->imr_multiaddr); in main()
55 inet_pton(AF_INET, interface, &m4->imr_interface); in main()
56 inet_pton(AF_INET6, multi6addr, &m6->ipv6mr_multiaddr); in main()
Dnlattr_inet_diag_req_compat.c61 if (!inet_pton(AF_INET, address, req->id.idiag_src) || in init_inet_diag_req()
62 !inet_pton(AF_INET, address, req->id.idiag_dst)) in init_inet_diag_req()
Dnlattr_ifaddrmsg.c124 if (!inet_pton(AF_INET, address4, &a4)) in main()
134 if (!inet_pton(AF_INET6, address6, &a6)) in main()
/external/strace/tests-m32/
Dnetlink_sock_diag.c388 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_sockid()
389 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_sockid()
411 if (!inet_pton(AF_INET6, address6, &req.id.idiag_src) || in test_inet_diag_sockid()
412 !inet_pton(AF_INET6, address6, &req.id.idiag_dst)) in test_inet_diag_sockid()
454 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req()
455 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req()
496 if (!inet_pton(AF_INET, address, &req.id.idiag_src) || in test_inet_diag_req_v2()
497 !inet_pton(AF_INET, address, &req.id.idiag_dst)) in test_inet_diag_req_v2()
541 if (!inet_pton(AF_INET, address, &msg.id.idiag_src) || in test_inet_diag_msg()
542 !inet_pton(AF_INET, address, &msg.id.idiag_dst)) in test_inet_diag_msg()
[all …]
Dip_mreq.c54 inet_pton(AF_INET, multi4addr, &m4->imr_multiaddr); in main()
55 inet_pton(AF_INET, interface, &m4->imr_interface); in main()
56 inet_pton(AF_INET6, multi6addr, &m6->ipv6mr_multiaddr); in main()
Dnlattr_inet_diag_req_compat.c61 if (!inet_pton(AF_INET, address, req->id.idiag_src) || in init_inet_diag_req()
62 !inet_pton(AF_INET, address, req->id.idiag_dst)) in init_inet_diag_req()
Dnlattr_ifaddrmsg.c124 if (!inet_pton(AF_INET, address4, &a4)) in main()
134 if (!inet_pton(AF_INET6, address6, &a6)) in main()
/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c52 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ConnectAndAccept()
54 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ConnectAndAccept()
78 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in ConnectAndAccept()
161 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in CreateServerConnectAndAccept()
163 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in CreateServerConnectAndAccept()
181 inet_pton(AF_INET, "127.0.0.1", &sa4.sin_addr); in CreateServerConnectAndAccept()
302 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ThreadedCreateServerConnectAndAccept()
304 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ThreadedCreateServerConnectAndAccept()
/external/ltp/testcases/network/lib6/
Din6_01.c125 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def()
145 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped()
180 rv = inet_pton(AF_INET, sstab[i].addr, &psin->sin_addr); in test_sockaddr_storage()
183 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
/external/ltp/include/
Dtst_net.h83 ret = inet_pton(AF_INET, prefix, &in); in ipv4_mask_to_int()
145 if (inet_pton(AF_INET, ip_str, ip) <= 0) in get_in_addr()
151 if (inet_pton(AF_INET6, ip_str, ip6) <= 0) in get_in6_addr()
/external/libnl/tests/
Dtest-create-ip6tnl.c39 inet_pton(AF_INET6, "2607:f0d0:1002:51::4", &addr); in main()
42 inet_pton(AF_INET6, "2607:f0d0:1002:52::5", &addr); in main()
Dtest-create-sit.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipip.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipvti.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
Dtest-create-ipgre.c39 inet_pton(AF_INET, "192.168.254.12", &addr.s_addr); in main()
42 inet_pton(AF_INET, "192.168.254.13", &addr.s_addr); in main()
/external/scapy/scapy/layers/
Dinet6.py72 from scapy.utils import checksum, inet_pton, inet_ntop, strxor
104 nsma = in6_getnsma(inet_pton(socket.AF_INET6, addr))
130 mac = in6_getnsmac(inet_pton(socket.AF_INET6, ip6))
177 self.net = inet_pton(socket.AF_INET6, tmp[0])
246 return inet_pton(socket.AF_INET6, plain_str(x))
377 y = inet_pton(socket.AF_INET6, y)
380 y = inet_pton(socket.AF_INET6, y)
463 sd = inet_pton(socket.AF_INET6, sd)
465 a = inet_pton(socket.AF_INET6, a)
493 sd = inet_pton(socket.AF_INET6, sd)
[all …]
/external/android-clat/
Dclatd_test.cpp585 inet_pton(AF_INET, kIPv4LocalAddr, &Global_Clatd_Config.ipv4_local_subnet); in SetUp()
586 inet_pton(AF_INET6, kIPv6PlatSubnet, &Global_Clatd_Config.plat_subnet); in SetUp()
656 ASSERT_TRUE(inet_pton(AF_INET6, "::bad:ace:d00d", &Global_Clatd_Config.ipv6_host_id)); in TEST_F()
657 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:0:bad:ace:d00d", &expected)); in TEST_F()
658 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:f076:ae99:124e:aa54", &myaddr)); in TEST_F()
669 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:f076:ae99:124e:aa54", &interface_ipv6)); in TEST_F()
732 inet_pton(AF_INET, kIPv4LocalAddr, &addr); in TEST_F()
954 inet_pton(AF_INET6, kIPv6LocalAddr, &Global_Clatd_Config.ipv6_local_subnet); in TEST_F()
975 inet_pton(AF_INET6, kIPv6LocalAddr, &Global_Clatd_Config.ipv6_local_subnet); in TEST_F()
1002 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:f076:ae99:124e:aa54", in TEST_F()
[all …]
/external/curl/tests/server/
DMakefile.inc49 ../../lib/inet_pton.c
56 ../../lib/inet_pton.c
/external/scapy/scapy/arch/
D__init__.py18 from scapy.pton_ntop import inet_pton
96 return inet_pton(socket.AF_INET6, ip6)

12345678