mirror of https://github.com/dirtbags/netarch.git
Revert attempt to use Unpacker in ip.py (it would be slower)
This commit is contained in:
parent
92731f5c74
commit
7305d42800
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue