root/scapy/asn1packet.py
| Revision 862:52d055e522bd, 0.6 kB (checked in by Phil <phil@secdev.org>, 5 months ago) |
|---|
| Line | |
|---|---|
| 1 | ## This file is part of Scapy |
| 2 | ## See http://www.secdev.org/projects/scapy for more informations |
| 3 | ## Copyright (C) Philippe Biondi <phil@secdev.org> |
| 4 | ## This program is published under a GPLv2 license |
| 5 | |
| 6 | from packet import * |
| 7 | |
| 8 | class ASN1_Packet(Packet): |
| 9 | ASN1_root = None |
| 10 | ASN1_codec = None |
| 11 | def init_fields(self): |
| 12 | flist = self.ASN1_root.get_fields_list() |
| 13 | self.do_init_fields(flist) |
| 14 | self.fields_desc = flist |
| 15 | def do_build(self): |
| 16 | return self.ASN1_root.build(self) |
| 17 | def do_dissect(self, x): |
| 18 | return self.ASN1_root.dissect(self, x) |
| 19 | |
| 20 |
Note: See TracBrowser for help on using the browser.