]> git.ipfire.org Git - oddments/cappie.git/commitdiff
Don't check length of arp messages.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Apr 2010 10:53:15 +0000 (12:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Apr 2010 10:53:15 +0000 (12:53 +0200)
It seems as if there are OSes around that send
packages with a different length.

cappie.py

index 036d70c914b919aaf099c762499dc136561052c2..a99493432c602edd8169e2f55c0774e34c3a3439 100644 (file)
--- 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,