rnithyanand / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

icmp6 type/code slip duplicate? #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

>>> print binascii.b2a_hex(buf)
002314008b3c000c29ea6fad86dd6000000000203afffe80000000000000020c29fffeea6fadfe80
000000000000655dc7efb798391387000be800000000fe80000000000000655dc7efb79839130101
000c29ea6fad
>>> frame = dpkt.ethernet.Ethernet(buf)
>>> print binascii.b2a_hex(str(frame))
002314008b3c000c29ea6fad86dd6000000000203afffe80000000000000020c29fffeea6fadfe80
000000000000655dc7efb798391387000be887000be800000000fe80000000000000655dc7efb798
39130101000c29ea6fad        

icmp6 type and code and the back 4bytes is duplicate unpacked.

What is the expected output? What do you see instead?
The above.

What version of the product are you using? On what operating system?
First line of icmp6.py
# $Id: icmp6.py 23 2006-11-08 15:45:33Z dugsong $

Please provide any additional information below.

***** C:\DEV\PYTHON\ICMP6_ORIGINAL.PY
   71:          except (KeyError, dpkt.UnpackError):
   72:              self.data = buf
***** C:\DEV\PYTHON\ICMP6.PY
   71:          except (KeyError, dpkt.UnpackError):
   72:              pass
*****

Same icmp.py.
Maybe work.

Original issue reported on code.google.com by ruy.su...@gmail.com on 27 Sep 2011 at 2:32

GoogleCodeExporter commented 9 years ago
It was the same problem as Issue 59.
Sorry.

Original comment by ruy.su...@gmail.com on 20 Oct 2011 at 1:11