(self, aBuffer)
| 763 | self.subtype=subtype |
| 764 | |
| 765 | def decode(self, aBuffer): |
| 766 | p = dot11.Dot11ManagementFrame(aBuffer) |
| 767 | self.set_decoded_protocol( p ) |
| 768 | |
| 769 | if self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_BEACON: |
| 770 | self.mgt_beacon_decoder = Dot11ManagementBeaconDecoder() |
| 771 | packet = self.mgt_beacon_decoder.decode(p.body_string) |
| 772 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_PROBE_REQUEST: |
| 773 | self.mgt_probe_request_decoder = Dot11ManagementProbeRequestDecoder() |
| 774 | packet = self.mgt_probe_request_decoder.decode(p.body_string) |
| 775 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_PROBE_RESPONSE: |
| 776 | self.mgt_probe_response_decoder = Dot11ManagementProbeResponseDecoder() |
| 777 | packet = self.mgt_probe_response_decoder.decode(p.body_string) |
| 778 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_DEAUTHENTICATION: |
| 779 | self.mgt_deauthentication_decoder = Dot11ManagementDeauthenticationDecoder() |
| 780 | packet = self.mgt_deauthentication_decoder.decode(p.body_string) |
| 781 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_AUTHENTICATION: |
| 782 | self.mgt_Authentication_decoder = Dot11ManagementAuthenticationDecoder() |
| 783 | packet = self.mgt_Authentication_decoder.decode(p.body_string) |
| 784 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_DISASSOCIATION: |
| 785 | self.mgt_disassociation_decoder = Dot11ManagementDisassociationDecoder() |
| 786 | packet = self.mgt_disassociation_decoder.decode(p.body_string) |
| 787 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_ASSOCIATION_REQUEST: |
| 788 | self.mgt_association_request_decoder = Dot11ManagementAssociationRequestDecoder() |
| 789 | packet = self.mgt_association_request_decoder.decode(p.body_string) |
| 790 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_ASSOCIATION_RESPONSE: |
| 791 | self.mgt_association_response_decoder = Dot11ManagementAssociationResponseDecoder() |
| 792 | packet = self.mgt_association_response_decoder.decode(p.body_string) |
| 793 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_REASSOCIATION_REQUEST: |
| 794 | self.mgt_reassociation_request_decoder = Dot11ManagementReassociationRequestDecoder() |
| 795 | packet = self.mgt_reassociation_request_decoder.decode(p.body_string) |
| 796 | elif self.subtype is dot11.Dot11Types.DOT11_SUBTYPE_MANAGEMENT_REASSOCIATION_RESPONSE: |
| 797 | self.mgt_reassociation_response_decoder = Dot11ManagementReassociationResponseDecoder() |
| 798 | packet = self.mgt_reassociation_response_decoder.decode(p.body_string) |
| 799 | else: |
| 800 | data_decoder = DataDecoder() |
| 801 | packet = data_decoder.decode(p.body_string) |
| 802 | |
| 803 | p.contains(packet) |
| 804 | return p |
| 805 | |
| 806 | class Dot11ManagementBeaconDecoder(BaseDot11Decoder): |
| 807 | def __init__(self): |
no test coverage detected