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

Class Dot11Auth

scapy/layers/dot11.py:1615–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1613
1614
1615class Dot11Auth(_Dot11EltUtils):
1616 name = "802.11 Authentication"
1617 fields_desc = [LEShortEnumField("algo", 0, ["open", "sharedkey"]),
1618 LEShortField("seqnum", 0),
1619 LEShortEnumField("status", 0, status_code)]
1620
1621 def answers(self, other):
1622 if self.algo != other.algo:
1623 return 0
1624
1625 if (
1626 self.seqnum == other.seqnum + 1 or
1627 (self.algo == 3 and self.seqnum == other.seqnum)
1628 ):
1629 return 1
1630 return 0
1631
1632
1633class Dot11Deauth(Packet):

Callers 1

send_auth_responseMethod · 0.90

Calls 2

LEShortEnumFieldClass · 0.90
LEShortFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…