We use a hybrid environment, with a physical switch and a virtual switch. We find the problem in exchanging LLDP between them. If the solution is linux cooked header, where I need put this snippet of code?, in what file I need add it? :
#!/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 Thanks a lot ! ________________________________________ De: FUJITA Tomonori <fujita.tomon...@lab.ntt.co.jp> Enviado: viernes, 29 de agosto de 2014 15:06 Para: MARIA VICTORIA ALVAREZ SIERRA Cc: ryu-devel@lists.sourceforge.net Asunto: Re: [Ryu-devel] Assertion Error with LLDP_TLV_SIZE On Fri, 29 Aug 2014 08:37:26 +0000 MARIA VICTORIA ALVAREZ SIERRA <mariavictoria.alvarezsie...@telefonica.com> 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 ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel