| 1613 | |
| 1614 | |
| 1615 | class 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 | |
| 1633 | class Dot11Deauth(Packet): |
no test coverage detected
searching dependent graphs…