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))