Dumb_Resequence works for UDP as well

This commit is contained in:
pi-rho 2013-02-19 19:13:33 -06:00
parent 0e5c4d81c9
commit 31982a2b8e
1 changed files with 3 additions and 5 deletions

View File

@ -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: