On Wed, May 1, 2013 at 2:41 AM, FUJITA Tomonori <
[email protected]> wrote:

> On Tue, 30 Apr 2013 17:31:39 -0400
> Nitin Sharma <[email protected]> wrote:
>
> >             elif (msg.version == 1):
> >                 pkt = packet.Packet(array.array('B', ev.msg.data))
> >                 for p in pkt.protocols:
> >                     if p.protocol_name == 'arp':
> >                         dst_ip = str(self.numToDottedQuad(p.dst_ip))
> >                         src_ip = str(self.numToDottedQuad(p.src_ip))
>
> I think that the above code works with any OF versions.
>

So this is what I get on OF1.2 for the same code.

<ryu.lib.packet.ethernet.ethernet object at 0x30599d0>
<ryu.lib.packet.arp.arp object at 0x3059e90>
array('B', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

AttributeError: 'array.array' object has no attribute 'protocol_name'
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to