Re: [Ryu-devel] Error while getting vlan Id

2016-01-21 Thread David Gabriel
Thanks so much Victor for your help. Your code fixes my problem. 2016-01-21 4:35 GMT-08:00 Victor Orlikowski : > On Jan 21, 2016, at 5:33 AM, David Gabriel wrote: > > > I am getting an error when I want to get the *vlan id* of packets. > In fact, I am using the following code I found here >

Re: [Ryu-devel] Error while getting vlan Id

2016-01-21 Thread Victor Orlikowski
On Jan 21, 2016, at 5:33 AM, David Gabriel mailto:[email protected]>> wrote: I am getting an error when I want to get the vlan id of packets. In fact, I am using the following code I found here pkt = packet.Packet(array.arr

[Ryu-devel] Error while getting vlan Id

2016-01-21 Thread David Gabriel
Dears, I am getting an error when I want to get the *vlan id* of packets. In fact, I am using the following code I found here pkt = packet.Packet(array.array('B', ev.msg.data)) for p in pkt: print p.protocol_name, p