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

Function in6_isgladdr

scapy/utils6.py:776–784  ·  view source on GitHub ↗

Returns True if provided address in printable format belongs to _allocated_ global address space (2000::/3). Please note that, Unique Local addresses (FC00::/7) are not part of global address space, and won't match.

(str)

Source from the content-addressed store, hash-verified

774
775
776def in6_isgladdr(str):
777 # type: (str) -> bool
778 """
779 Returns True if provided address in printable format belongs to
780 _allocated_ global address space (2000::/3). Please note that,
781 Unique Local addresses (FC00::/7) are not part of global address
782 space, and won't match.
783 """
784 return in6_isincluded(str, '2000::', 3)
785
786
787def in6_ismaddr(str):

Callers 4

routeMethod · 0.90
cset_sortFunction · 0.85
in6_getscopeFunction · 0.85

Calls 1

in6_isincludedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…