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

Function in4_isaddrllallnodes

scapy/utils.py:891–898  ·  view source on GitHub ↗

Returns True if address is the link-local all-nodes multicast address (224.0.0.1).

(str)

Source from the content-addressed store, hash-verified

889
890
891def in4_isaddrllallnodes(str):
892 # type: (str) -> bool
893 """
894 Returns True if address is the link-local all-nodes multicast
895 address (224.0.0.1).
896 """
897 return (inet_pton(socket.AF_INET, "224.0.0.1") ==
898 inet_pton(socket.AF_INET, str))
899
900
901def in4_getnsmac(a):

Callers

nothing calls this directly

Calls 1

inet_ptonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…