From 7305d42800813a2508b77a23c79c4a2e6d66961c Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 10 Jul 2018 19:53:03 +0000 Subject: [PATCH] Revert attempt to use Unpacker in ip.py (it would be slower) --- netarch/ip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netarch/ip.py b/netarch/ip.py index 5478350..9f31424 100644 --- a/netarch/ip.py +++ b/netarch/ip.py @@ -16,7 +16,7 @@ except ImportError: import os import cgi import urllib -from netarch import * +from netarch import unpack, hexdump from netarch.trilobytes import TriloBytes def unpack_nybbles(byte): @@ -41,6 +41,7 @@ class Frame: def __init__(self, pkt): ((self.time, self.time_usec, _), frame) = pkt + # Ethernet (self.eth_dhost, self.eth_shost,