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

Method _resolve_MAC

scapy/data.py:499–504  ·  view source on GitHub ↗
(self, mac)

Source from the content-addressed store, hash-verified

497 return self._get_manuf_couple(mac)[0]
498
499 def _resolve_MAC(self, mac):
500 # type: (str) -> str
501 oui = ":".join(mac.split(":")[:3]).upper()
502 if oui in self:
503 return ":".join([self[oui][0]] + mac.split(":")[3:])
504 return mac
505
506 def lookup(self, mac):
507 # type: (str) -> Tuple[str, str]

Callers 3

i2reprMethod · 0.80
_formatMethod · 0.80
showMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected