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

Function valid_mac

scapy/utils.py:666–672  ·  view source on GitHub ↗
(mac)

Source from the content-addressed store, hash-verified

664
665
666def valid_mac(mac):
667 # type: (str) -> bool
668 try:
669 return len(mac2str(mac)) == 6
670 except ValueError:
671 pass
672 return False
673
674
675def str2mac(s):

Callers 1

ARPClass · 0.90

Calls 1

mac2strFunction · 0.85

Tested by

no test coverage detected