diff options
| author | Andrew Lamoureux <andrew@vector35.com> | 2019-03-20 15:35:00 -0400 |
|---|---|---|
| committer | Andrew Lamoureux <andrew@vector35.com> | 2019-03-20 15:35:00 -0400 |
| commit | a2d0b2cd66639e983b5a4fb191d8afe5cac77855 (patch) | |
| tree | 8561a4193d6cb394839cf6aaef2642b095a4ea30 /python/examples/kaitai/packet_ppi.py | |
| parent | b5e86006a35910ff115d35998e84938e7d92a8ea (diff) | |
kaitai: more format compatibility, testing
Diffstat (limited to 'python/examples/kaitai/packet_ppi.py')
| -rw-r--r-- | python/examples/kaitai/packet_ppi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/kaitai/packet_ppi.py b/python/examples/kaitai/packet_ppi.py index aa16a322..c281f784 100644 --- a/python/examples/kaitai/packet_ppi.py +++ b/python/examples/kaitai/packet_ppi.py @@ -9,7 +9,7 @@ import collections if parse_version(ks_version) < parse_version('0.7'): raise Exception("Incompatible Kaitai Struct Python API: 0.7 or later is required, but you have %s" % (ks_version)) -from ethernet_frame import EthernetFrame +from . import ethernet_frame class PacketPpi(KaitaiStruct): """PPI is a standard for link layer packet encapsulation, proposed as generic extensible container to store both captured in-band data and @@ -163,7 +163,7 @@ class PacketPpi(KaitaiStruct): elif _on == self._root.Linktype.ethernet: self._raw_body = self._io.read_bytes_full() io = KaitaiStream(BytesIO(self._raw_body)) - self.body = EthernetFrame(io) + self.body = ethernet_frame.EthernetFrame(io) self.body._read() else: self.body = self._io.read_bytes_full() |
