Hi Ryu team:

Thank you for your patch. Now the error of "unpack_from" is gone.
However, there is still something wrong there: the length of msg.data after
parsing is always 0.
Here is part of our code:

*@handler.set_ev_cls(ofp_event.EventOFPPacketIn, handler.MAIN_DISPATCHER)*
*    def packet_in_handler(self, event):*
*        msg = event.msg*
*        datapath = msg.datapath*
*        dpid = datapath.id*
*        in_port = msg.in_port*
*
*
*        whole_packet = packet.Packet(msg.data)*
*        ethernet_header = whole_packet.get_protocol(ethernet.ethernet)*
*        ethernet_src = ethernet_header.src*

The last statement (*ethernet_src = ethernet_header.src*) triggers an error:

*AttributeError: 'NoneType' object has no attribute 'src'*
*
*
I tried to debug the problem, and found out that the length of data is 0.


On Thu, Sep 26, 2013 at 2:22 PM, Chen Chen <[email protected]> wrote:

> Thank you. We will try it soon.
>
>
> On Thursday, September 26, 2013, FUJITA Tomonori wrote:
>
>> On Wed, 25 Sep 2013 11:14:40 -0400
>> Changbin Liu <[email protected]> wrote:
>>
>> > We used Tcpdump to capture the packets and validated that it is an issue
>> > related to "malfold openflow packet" sent by Open vSwitch to the Ryu
>> > controller. We also used this patch (
>> >
>> http://www.mail-archive.com/[email protected]/msg02228.html
>> )
>> > to dump the error msg, which is e.g.,
>>
>> A fix for this problem was already merged. Please try the latest code.
>>
>
>
> --
> Thanks,
> Chen
>
>


-- 
Thanks,
Chen
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to