On Sun, 26 Oct 2014 20:26:38 +0900 (JST)
FUJITA Tomonori <[email protected]> wrote:

> On Thu, 23 Oct 2014 14:23:27 -0400
> Jeff Rasley <[email protected]> wrote:
> 
>> More specifically I am getting an "error: 'unpack_from requires a buffer of
>> at least 233 bytes'" error from the unpack call on 185 (my buffer appears
>> to be 91 bytes long). Which makes me think that the unpack string is not
>> representative of my DHCP Discover packet.
> 
> As Benjamin suggested, I also suspect that your in_packet_in function
> doesn't get the full packet.
> 
> https://gist.github.com/jeffra/aa6cf159db53f27922a2#file-gistfile1-py-L3
> 
> Adding 'print len(msg.data)' above third line would help.
> 
> btw, I think that our library should not crash with any packet so I'll
> apply the following patch. With the patch, our library fails to parse
> truncated DHCP packet but doesn't crash.

Applied the patch.

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to