mirror of https://github.com/dirtbags/netarch.git
Dispatch should ignore non-ip frames
This commit is contained in:
parent
31982a2b8e
commit
06b5940d02
|
@ -531,12 +531,13 @@ class Dispatch(object):
|
||||||
if not self.last:
|
if not self.last:
|
||||||
self.last = (filename, pos)
|
self.last = (filename, pos)
|
||||||
frame = Frame(f, pc.linktype)
|
frame = Frame(f, pc.linktype)
|
||||||
if frame.hash not in self.sessions:
|
if frame.protocol:
|
||||||
self.sessions[frame.hash] = self._get_sequencer(frame.protocol)
|
if frame.hash not in self.sessions:
|
||||||
ret = self.sessions[frame.hash].handle(frame)
|
self.sessions[frame.hash] = self._get_sequencer(frame.protocol)
|
||||||
if ret:
|
ret = self.sessions[frame.hash].handle(frame)
|
||||||
yield frame.hash, ret
|
if ret:
|
||||||
self.last = None
|
yield frame.hash, ret
|
||||||
|
self.last = None
|
||||||
|
|
||||||
self._read(pc, filename, fd)
|
self._read(pc, filename, fd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue