diff options
Diffstat (limited to 'scripts/external_libs/scapy-python3-0.18/scapy/asn1packet.py')
-rw-r--r-- | scripts/external_libs/scapy-python3-0.18/scapy/asn1packet.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/external_libs/scapy-python3-0.18/scapy/asn1packet.py b/scripts/external_libs/scapy-python3-0.18/scapy/asn1packet.py new file mode 100644 index 00000000..049e2b75 --- /dev/null +++ b/scripts/external_libs/scapy-python3-0.18/scapy/asn1packet.py @@ -0,0 +1,26 @@ +## This file is part of Scapy +## See http://www.secdev.org/projects/scapy for more informations +## Copyright (C) Philippe Biondi <phil@secdev.org> +## This program is published under a GPLv2 license + +""" +Packet holding data in Abstract Syntax Notation (ASN.1). +""" + +from scapy.packet import * + +class ASN1_Packet(Packet): + ASN1_root = None + ASN1_codec = None + def init_fields(self): + flist = self.ASN1_root.get_fields_list() + self.do_init_fields(flist) + self.fields_desc = flist + def self_build(self): + if self.raw_packet_cache is not None: + return self.raw_packet_cache + return self.ASN1_root.build(self) + def do_dissect(self, x): + return self.ASN1_root.dissect(self, x) + + |