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

Class _Dot11MacField

scapy/layers/dot11.py:675–691  ·  view source on GitHub ↗

A MACField that displays the address type depending on the 802.11 flags

Source from the content-addressed store, hash-verified

673
674
675class _Dot11MacField(MACField):
676 """
677 A MACField that displays the address type depending on the
678 802.11 flags
679 """
680 __slots__ = ["index"]
681
682 def __init__(self, name, default, index):
683 self.index = index
684 super(_Dot11MacField, self).__init__(name, default)
685
686 def i2repr(self, pkt, val):
687 s = super(_Dot11MacField, self).i2repr(pkt, val)
688 meaning = pkt.address_meaning(self.index)
689 if meaning:
690 return "%s (%s)" % (s, meaning)
691 return s
692
693
694# 802.11-2020 9.2.4.1.1

Callers 1

Dot11Class · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…