Hi,

There is a TypeError exception with Ryu parsing fragmented ICMPv4
packets of a certain length.  The attached program
"ryu_icmpv4_test.py" demonstrates the failure. Note that the packet
data is for the second fragment of a large ICMP echo.

The file "ryu_icmpv4.patch" contains a superficial patch for this issue.

It looks like Ryu attempts to parse the higher layers of an IPv4
packet even when the IP fragment offset is > 0. This is a separate
issue that I did not change.

Regards,
-Bill
import binascii
from ryu.lib.packet.packet import Packet

data = '0e00000000010ac2bb0242968100006408004500001803c000b94001610a0a0000010a6400fec0c1c2c3'

result = Packet(binascii.unhexlify(data))
print(result)

Attachment: ryu_icmpv4.patch
Description: Binary data

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to