summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-01 17:53:25 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-01 17:53:25 +0200
commitf7d24e3fde8dbd36f9e2679307f5f384022857f2 (patch)
tree86d6e0c5a44bd84ce0f15d820c6fa08c0ee827a3 /scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py
parent37ea6af93798ef5e2a877b755ff6dc6cb2cde33a (diff)
first scapy version
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py')
-rw-r--r--scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py b/scripts/external_libs/scapy-2.3.1/scapy/asn1packet.py
new file mode 100644
index 00000000..4c476d2a
--- /dev/null
+++ b/scripts/external_libs/scapy-2.3.1/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 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)
+
+