From: Michael Tremer Date: Sat, 17 Apr 2010 10:53:15 +0000 (+0200) Subject: Don't check length of arp messages. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97abe7b434d2d74b683e44d338535c5fc9cca2f;p=oddments%2Fcappie.git Don't check length of arp messages. It seems as if there are OSes around that send packages with a different length. --- diff --git a/cappie.py b/cappie.py index 036d70c..a994934 100644 --- a/cappie.py +++ b/cappie.py @@ -49,8 +49,8 @@ def decode_arp_packet(data): 2 : OPERATION_RESPONSE, } - if not len(data) == 42: - raise DecodeError, "Data has wrong length" + #if not len(data) == 42: + # raise DecodeError, "Data has wrong length: %d" % len(data) ret = { "type" : TYPE_ARP,