Because my of switch doesn't allow a packet which is smaller than 64 bytes
to be sent out, so a lldp packet whose length is 51 become 60 ( 64 - 4 CRC
bytes).
That is to say, there will be 9 bytes "00" at the end of lldp packet.
So I change lib/packet/lldp.py
140 buf = buf[offset:]
To
buf = buf[offset:]
if tlv.tlv_type == LLDP_TLV_END:
buf = []
so, is there any other questions as a result of it ?
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to