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

Function in4_getnsmac

scapy/utils.py:901–908  ·  view source on GitHub ↗

Return the multicast mac address associated with provided IPv4 address. Passed address must be in network format.

(a)

Source from the content-addressed store, hash-verified

899
900
901def in4_getnsmac(a):
902 # type: (bytes) -> str
903 """
904 Return the multicast mac address associated with provided
905 IPv4 address. Passed address must be in network format.
906 """
907
908 return "01:00:5e:%.2x:%.2x:%.2x" % (a[1] & 0x7f, a[2], a[3])
909
910
911def decode_locale_str(x):

Callers 1

getmacbyipFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…