Revert attempt to use Unpacker in ip.py (it would be slower)

This commit is contained in:
Neale Pickett 2018-07-10 19:53:03 +00:00
parent 92731f5c74
commit 7305d42800
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ except ImportError:
import os import os
import cgi import cgi
import urllib import urllib
from netarch import * from netarch import unpack, hexdump
from netarch.trilobytes import TriloBytes from netarch.trilobytes import TriloBytes
def unpack_nybbles(byte): def unpack_nybbles(byte):
@ -41,6 +41,7 @@ class Frame:
def __init__(self, pkt): def __init__(self, pkt):
((self.time, self.time_usec, _), frame) = pkt ((self.time, self.time_usec, _), frame) = pkt
# Ethernet # Ethernet
(self.eth_dhost, (self.eth_dhost,
self.eth_shost, self.eth_shost,