Home
last modified time | relevance | path

Searched refs:inet_ntop (Results 1 – 25 of 171) sorted by relevance

1234567

/external/bcc/tools/
Dtcpretrans.py22 from socket import inet_ntop, AF_INET, AF_INET6
252 "%s:%d" % (inet_ntop(AF_INET, pack('I', event.saddr)), event.lport),
254 "%s:%s" % (inet_ntop(AF_INET, pack('I', event.daddr)), event.dport),
261 "%s:%d" % (inet_ntop(AF_INET6, event.saddr), event.lport),
263 "%s:%d" % (inet_ntop(AF_INET6, event.daddr), event.dport),
271 … depict_key = "%-20s <-> %-20s" % (ep_fmt % (inet_ntop(AF_INET, pack('I', k.saddr)), k.lport),
272 … ep_fmt % (inet_ntop(AF_INET, pack('I', k.daddr)), k.dport))
274 depict_key = "%-20s <-> %-20s" % (ep_fmt % (inet_ntop(AF_INET6, k.saddr), k.lport),
275 ep_fmt % (inet_ntop(AF_INET6, k.daddr), k.dport))
Dtcpdrop.py24 from socket import inet_ntop, AF_INET, AF_INET6
186 "%s:%d" % (inet_ntop(AF_INET, pack('I', event.saddr)), event.sport),
187 "%s:%s" % (inet_ntop(AF_INET, pack('I', event.daddr)), event.dport),
198 "%s:%d" % (inet_ntop(AF_INET6, event.saddr), event.sport),
199 "%s:%d" % (inet_ntop(AF_INET6, event.daddr), event.dport),
Dtcpaccept.py20 from socket import inet_ntop, AF_INET, AF_INET6
243 inet_ntop(AF_INET, pack("I", event.daddr)),
244 inet_ntop(AF_INET, pack("I", event.saddr)), event.lport))
255 inet_ntop(AF_INET6, event.daddr),inet_ntop(AF_INET6, event.saddr),
Dtcpconnect.py23 from socket import inet_ntop, ntohs, AF_INET, AF_INET6
206 inet_ntop(AF_INET, pack("I", event.saddr)),
207 inet_ntop(AF_INET, pack("I", event.daddr)), event.dport))
218 inet_ntop(AF_INET6, event.saddr), inet_ntop(AF_INET6, event.daddr),
Dtcpconnlat.py19 from socket import inet_ntop, AF_INET, AF_INET6
241 inet_ntop(AF_INET, pack("I", event.saddr)),
242 inet_ntop(AF_INET, pack("I", event.daddr)), event.dport,
254 inet_ntop(AF_INET6, event.saddr), inet_ntop(AF_INET6, event.daddr),
Dtcplife.lua222 local function inet_ntop(af, addr, len) function
230 ffi.C.inet_ntop(af, addr_src, addr_dst, len)
248 local event_saddr = inet_ntop(AF_INET, tonumber(event.saddr), inet_addresslen)
249 local event_daddr = inet_ntop(AF_INET, tonumber(event.daddr), inet_addresslen)
287 …local event_saddr = inet_ntop(AF_INET6, {tonumber(event.saddr[0]), tonumber(event.saddr[1])}, inet…
288 …local event_daddr = inet_ntop(AF_INET6, {tonumber(event.daddr[0]), tonumber(event.daddr[1])}, inet…
Dtcptop.py30 from socket import inet_ntop, AF_INET, AF_INET6
194 laddr=inet_ntop(AF_INET, pack("I", k.saddr)),
196 daddr=inet_ntop(AF_INET, pack("I", k.daddr)),
201 laddr=inet_ntop(AF_INET6, k.saddr),
203 daddr=inet_ntop(AF_INET6, k.daddr),
Dtcptracer.py22 from socket import inet_ntop, AF_INET, AF_INET6
561 inet_ntop(AF_INET, pack("I", event.saddr)),
562 inet_ntop(AF_INET, pack("I", event.daddr)),
598 "[" + inet_ntop(AF_INET6, event.saddr) + "]",
599 "[" + inet_ntop(AF_INET6, event.daddr) + "]",
Dtcpstates.py20 from socket import inet_ntop, AF_INET, AF_INET6
281 inet_ntop(AF_INET, pack("I", event.saddr)), event.ports >> 32,
282 inet_ntop(AF_INET, pack("I", event.daddr)), event.ports & 0xffffffff,
304 inet_ntop(AF_INET6, event.saddr), event.ports >> 32,
305 inet_ntop(AF_INET6, event.daddr), event.ports & 0xffffffff,
Dtcplife.py28 from socket import inet_ntop, ntohs, AF_INET, AF_INET6
459 inet_ntop(AF_INET, pack("I", event.saddr)), event.ports >> 32,
460 inet_ntop(AF_INET, pack("I", event.daddr)), event.ports & 0xffffffff,
481 inet_ntop(AF_INET6, event.saddr), event.ports >> 32,
482 inet_ntop(AF_INET6, event.daddr), event.ports & 0xffffffff,
Dsolisten.py21 from socket import inet_ntop, AF_INET, AF_INET6, SOCK_STREAM, SOCK_DGRAM
161 address = inet_ntop(AF_INET, pack("I", event.laddr[0]))
163 address = inet_ntop(AF_INET6, event.laddr)
/external/libpcap/testprogs/
Dfindalldevstest.c241 inet_ntop(AF_INET, in ifprint()
246 inet_ntop(AF_INET, in ifprint()
251 inet_ntop(AF_INET, in ifprint()
256 inet_ntop(AF_INET, in ifprint()
265 inet_ntop(AF_INET6, in ifprint()
270 inet_ntop(AF_INET6, in ifprint()
275 inet_ntop(AF_INET6, in ifprint()
280 inet_ntop(AF_INET6, in ifprint()
/external/libnetfilter_conntrack/
Dconfigure.ac32 dnl Check for inet_ntop
33 AC_CHECK_FUNCS(inet_ntop)
38 AC_MSG_CHECKING(if inet_ntop supports IPv6)
57 if (inet_ntop(AF_INET6, &addr6, buf, 128) == 0 && errno == EAFNOSUPPORT)
63 AC_DEFINE_UNQUOTED(HAVE_INET_NTOP_IPV6, 1, [Define to 1 if inet_ntop supports IPv6.])
/external/scapy/scapy/
Dutils6.py166 paddr = inet_ntop(socket.AF_INET6, naddr) # normalize
241 ifaceid = inet_ntop(socket.AF_INET6, x)[2:]
318 return inet_ntop(socket.AF_INET6, a)
328 addr = inet_ntop(socket.AF_INET6, b'\x20\x02'+addr+b'\x00'*10)
344 return inet_ntop(socket.AF_INET, addr[2:6])
373 return inet_ntop(socket.AF_INET6, b'\xfd' + globalid + b'\x00'*10)
405 s1 = inet_ntop(socket.AF_INET6, b"\xff"*8 + s1)[20:]
406 s2 = inet_ntop(socket.AF_INET6, b"\xff"*8 + s2)[20:]
435 return inet_ntop(socket.AF_INET6, b"".join(res))
490 server = inet_ntop(socket.AF_INET, addr[4:8])
[all …]
Dpton_ntop.py126 def inet_ntop(af, addr): function
131 return socket.inet_ntop(af, addr)
/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/android-clat/
Ddump.c67 inet_ntop(AF_INET, &header->saddr, addrstr, sizeof(addrstr)); in dump_ip()
69 inet_ntop(AF_INET, &header->daddr, addrstr, sizeof(addrstr)); in dump_ip()
85 inet_ntop(AF_INET6, &header->ip6_src, addrstr, sizeof(addrstr)); in dump_ip6()
88 inet_ntop(AF_INET6, &header->ip6_dst, addrstr, sizeof(addrstr)); in dump_ip6()
Dclatd.c161 inet_ntop(AF_INET, &Global_Clatd_Config.ipv4_local_subnet, addrstr, sizeof(addrstr)); in configure_tun_ip()
268 inet_ntop(AF_INET6, &Global_Clatd_Config.ipv6_local_subnet, oldstr, sizeof(oldstr)); in ipv6_address_changed()
269 inet_ntop(AF_INET6, &interface_ip->ip6, newstr, sizeof(newstr)); in ipv6_address_changed()
333 inet_ntop(AF_INET6, &Global_Clatd_Config.ipv6_local_subnet, addrstr, sizeof(addrstr)); in configure_clat_ipv6_address()
/external/iproute2/lib/
Dll_addr.c38 return inet_ntop(AF_INET, addr, buf, blen); in ll_addr_n2a()
41 return inet_ntop(AF_INET6, addr, buf, blen); in ll_addr_n2a()
/external/iputils/
Dtraceroute6.c586 inet_ntop(AF_INET6, &to->sin6_addr, pa, sizeof(pa))); in main()
589 inet_ntop(AF_INET6, &saddr.sin6_addr, pa, sizeof(pa))); in main()
876 inet_ntop(AF_INET6, &from->sin6_addr, pa1, sizeof(pa1)), in packet_ok()
877 inet_ntop(AF_INET6, to, pa2, sizeof(pa2))); in packet_ok()
904 Printf(" %s", inet_ntop(AF_INET6, &from->sin6_addr, in print()
912 hostname = inet_ntop(AF_INET6, &from->sin6_addr, pa, sizeof(pa)); in print()
/external/bcc/examples/networking/
Dtc_perf_event.py60 (cpu, socket.inet_ntop(socket.AF_INET6, src_ip),
61 socket.inet_ntop(socket.AF_INET6, dst_ip),
/external/toybox/toys/pending/
Droute.c151 else if (!inet_ntop(AF_INET, &dest, destip, 32)) perror_exit("inet"); in display_routes()
154 else if (!inet_ntop(AF_INET, &gate, gateip, 32)) perror_exit("inet"); in display_routes()
156 if (!inet_ntop(AF_INET, &mask, maskip, 32)) perror_exit("inet"); in display_routes()
431 if (inet_ntop(AF_INET6, buf, buf2, INET6_ADDRSTRLEN)) in display_routes6()
435 if (inet_ntop(AF_INET6, buf, buf2, INET6_ADDRSTRLEN)) in display_routes6()
/external/ltp/testcases/network/multicast/mc_gethost/
Dmc_gethost.c70 printf("[%s]\n", inet_ntop(af, b_addr, p, sizeof p)); in main()
99 printf(" %s", inet_ntop(host->h_addrtype, in main()
/external/webrtc/webrtc/base/
Dnethelpers.cc102 const char* inet_ntop(int af, const void *src, char* dst, socklen_t size) { in inet_ntop() function
106 return ::inet_ntop(af, src, dst, size); in inet_ntop()
/external/toybox/toys/net/
Dnetstat.c47 if (!inet_ntop(af, addr, buf, 256)) { in addr2str()
303 if (inet_ntop(AF_INET, &dest, out, 16)) destip = out; in display_routes()
308 if (inet_ntop(AF_INET, &gate, out, 16)) gateip = out; in display_routes()
314 if (inet_ntop(AF_INET, &mask, out, 16)) maskip = out; in display_routes()

1234567