From 31982a2b8e338403623241592f217a78f54875b4 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Tue, 19 Feb 2013 19:13:33 -0600 Subject: [PATCH] Dumb_Resequence works for UDP as well --- netarch/ip.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/netarch/ip.py b/netarch/ip.py index 9e5f3ba..56182c8 100644 --- a/netarch/ip.py +++ b/netarch/ip.py @@ -518,14 +518,12 @@ class Dispatch(object): heapq.heappush(self.tops, (f, pc, filename, fd, pos)) def _get_sequencer(self, proto): - if not proto: - return Dumb_Resequence() - elif proto == TCP: + if proto == TCP: return TCP_Resequence() - elif proto == ICMP: + elif proto in (ICMP, UDP): return Dumb_Resequence() else: - raise NotImplementedError() + raise NotImplementedError(proto) def __iter__(self): while self.tops: