Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/topology/switches.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py
index bd31fa1..a92f8df 100644
--- a/ryu/topology/switches.py
+++ b/ryu/topology/switches.py
@@ -394,10 +394,11 @@ class LLDPPacket(object):
@staticmethod
def lldp_parse(data):
pkt = packet.Packet(data)
- eth_pkt = pkt.next()
+ i = iter(pkt)
+ eth_pkt = i.next()
assert type(eth_pkt) == ethernet.ethernet
- lldp_pkt = pkt.next()
+ lldp_pkt = i.next()
if type(lldp_pkt) != lldp.lldp:
raise LLDPPacket.LLDPUnknownFormat()
--
1.8.3.1
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel