mirror of https://github.com/dirtbags/netarch.git
Dumb_Resequence works for UDP as well
This commit is contained in:
parent
0e5c4d81c9
commit
31982a2b8e
|
@ -518,14 +518,12 @@ class Dispatch(object):
|
||||||
heapq.heappush(self.tops, (f, pc, filename, fd, pos))
|
heapq.heappush(self.tops, (f, pc, filename, fd, pos))
|
||||||
|
|
||||||
def _get_sequencer(self, proto):
|
def _get_sequencer(self, proto):
|
||||||
if not proto:
|
if proto == TCP:
|
||||||
return Dumb_Resequence()
|
|
||||||
elif proto == TCP:
|
|
||||||
return TCP_Resequence()
|
return TCP_Resequence()
|
||||||
elif proto == ICMP:
|
elif proto in (ICMP, UDP):
|
||||||
return Dumb_Resequence()
|
return Dumb_Resequence()
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError(proto)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
while self.tops:
|
while self.tops:
|
||||||
|
|
Loading…
Reference in New Issue