From 4c6a76755c44003c9d4badcab612983aba248063 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Fri, 15 Feb 2013 14:31:39 -0600 Subject: [PATCH] bugfix: integers matter! --- netarch/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netarch/ip.py b/netarch/ip.py index 290ed3e..4381eb7 100644 --- a/netarch/ip.py +++ b/netarch/ip.py @@ -466,7 +466,7 @@ class ICMP_Resequence(object): def handle(self, frame): if not self.cli: self.cli = frame.saddr - idx = 1 - (self.cli == frame.saddr) + idx = 1 - int(self.cli == frame.saddr) return (idx, frame, gapstr.GapString(frame.payload))