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

Function in4_ismgladdr

scapy/utils.py:869–879  ·  view source on GitHub ↗

Returns True if address belongs to global multicast address space (224.0.1.0-238.255.255.255).

(str)

Source from the content-addressed store, hash-verified

867
868
869def in4_ismgladdr(str):
870 # type: (str) -> bool
871 """
872 Returns True if address belongs to global multicast address
873 space (224.0.1.0-238.255.255.255).
874 """
875 return (
876 in4_isincluded(str, "224.0.0.0", 4) and
877 not in4_isincluded(str, "224.0.0.0", 24) and
878 not in4_isincluded(str, "239.0.0.0", 8)
879 )
880
881
882def in4_ismlsaddr(str):

Callers

nothing calls this directly

Calls 1

in4_isincludedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…