MCPcopy Index your code
hub / github.com/secdev/scapy / in6_getha

Function in6_getha

scapy/utils6.py:689–697  ·  view source on GitHub ↗

Return the anycast address associated with all home agents on a given subnet.

(prefix)

Source from the content-addressed store, hash-verified

687
688
689def in6_getha(prefix):
690 # type: (str) -> str
691 """
692 Return the anycast address associated with all home agents on a given
693 subnet.
694 """
695 r = in6_and(inet_pton(socket.AF_INET6, prefix), in6_cidr2mask(64))
696 r = in6_or(r, inet_pton(socket.AF_INET6, '::fdff:ffff:ffff:fffe'))
697 return inet_ntop(socket.AF_INET6, r)
698
699
700def in6_ptop(str):

Callers

nothing calls this directly

Calls 5

inet_ptonFunction · 0.90
inet_ntopFunction · 0.90
in6_andFunction · 0.85
in6_cidr2maskFunction · 0.85
in6_orFunction · 0.85

Tested by

no test coverage detected