Sorry Benny, I should have went into more detail in my previous email. I have definitely been using the library you pointed to however it is not actually parsing my DHCP Discover packets correctly.
Here's a sample of some code I have reduced my problem down to: https://gist.github.com/jeffra/aa6cf159db53f27922a2 The 4th protocol in the list of protocols is a DHCP Discover packet. After stepping through the parsing code in ryu.lib.packet.dhcp.parser and checking it against my pcap of the packet I know it partially decodes the packet but is not able to fully decode it. More specifically I am getting errors regarding the unpack_from call on 185 but the previous unpack call on 178 works fine (and returns the correct values). Any thoughts? On Thu, Oct 23, 2014 at 2:05 PM, Benjamin Eggerstedt < [email protected]> wrote: > Hi Jeff, > > Looking at https://github.com/osrg/ryu/blob/master/ryu/lib/packet/dhcp.py > I'd say "yes" :) > > Benny > > On Thu, Oct 23, 2014 at 7:22 PM, Jeff Rasley <[email protected]> wrote: > >> I seem to be having trouble parsing DHCP Discover packets in Ryu. I see >> there is a test for DHCP Offer messages >> in ryu/tests/unit/packet/test_dhcp.py. Has DHCP Discover parsing been >> implemented? >> >> Thanks, >> Jeff Rasley >> http://cs.brown.edu/~jeffra >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Ryu-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> >> >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
