MCPcopy Create free account
hub / github.com/secdev/scapy / in6_ptop

Function in6_ptop

scapy/utils6.py:700–706  ·  view source on GitHub ↗

Normalizes IPv6 addresses provided in printable format, returning the same address in printable format. (2001:0db8:0:0::1 -> 2001:db8::1)

(str)

Source from the content-addressed store, hash-verified

698
699
700def in6_ptop(str):
701 # type: (str) -> str
702 """
703 Normalizes IPv6 addresses provided in printable format, returning the
704 same address in printable format. (2001:0db8:0:0::1 -> 2001:db8::1)
705 """
706 return inet_ntop(socket.AF_INET6, inet_pton(socket.AF_INET6, str))
707
708
709def in6_isincluded(addr, prefix, plen):

Callers 3

h2iMethod · 0.90
deltMethod · 0.90
ifaddMethod · 0.90

Calls 2

inet_ntopFunction · 0.90
inet_ptonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…