On Fri, 29 Aug 2014 08:37:26 +0000
MARIA VICTORIA ALVAREZ SIERRA <[email protected]> 
wrote:

>> Can you send the pcap file that crashes the lldp code?
> 
> Yes, of course.

Thanks a lot!

But are you sure that this crashed Ryu? I've tried Ryu packet parser
code with this file but succesfully parsed all the packets (including
lldp).

I've attached test code. Looks like you don't use real ethernet
environment (I thought that you use normal ethernet environment) so it
needs linux cooked header support:

https://github.com/fujita/ryu/commits/master

=
#!/usr/bin/python

import os
import socket
import time
from ryu.lib.packet import packet
from ryu.lib.packet import linux
from ryu.lib.packet import lldp
import sys
import dpkt

filename = sys.argv[1]

counter = 0
for ts, _pkt in dpkt.pcap.Reader(open(filename, 'r')):
    pkt = packet.Packet(data=_pkt, parse_cls=linux.linuxcooked)
    l = pkt.get_protocol(lldp.lldp)
    if l:
        print counter, l
    counter += 1

print "end", counter


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to