Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
666
def
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
675
def
str2mac(s):
Callers
1
ARP
Class · 0.90
Calls
1
mac2str
Function · 0.85
Tested by
no test coverage detected