Finally having some free time, I've (hopefully) got a barebones daemon that listens for LLDP packets on every ethernet interface on the system, and spits out the data to stdout. If anyone has a SXCE or Opensolaris system connected to a managed switch that supports LLDP (and has it enabled) and can test it out, I would like to have any feedback. Unfortunately, I do not have access to such equipment either at work or in my small apartment.
What I have been able to do so far run the parsing code against the sample capture files on http://wiki.wireshark.org/LinkLayerDiscoveryProtocol. That seems to work (ignoring some bugs I have in my logic in iterating over multiple packets in a pcap file -- it only currently seems to read the first packet). To test, simply clone the repo (hg clone ssh://hg.opensolaris.org/hg/lld/lld-proto) and run make. To run, (as root or with sufficient privs -- whatever gives you the ability to iterate through the links on the system, then open, bind, and enable multicast reception on the DLPI interface) 'lld', or 'lld -d' for more verbose output. It's still rough, so I'll be continuing to work on refining things, but please let me know if you run into any problems, as well as if it's working. _______________________________________________ networking-discuss mailing list [email protected]
