Licensing Information

Open Source Used In Cisco DSP IP Cameras 255
your network card handles VLAN encapsulation/decapsulation, you need a
recent kernel to be able to receive those frames without listening on
all available VLAN. Starting from Linux 2.6.27, lldpd is able to
capture VLAN frames when VLAN acceleration is supported by the network
card. Here is the patch:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-
2.6.git;a=commit;h=bc1d0411b804ad190cdadabac48a10067f17b9e6
More information:
* http://en.wikipedia.org/wiki/Link_Layer_Discovery_Protocol
* http://standards.ieee.org/getieee802/download/802.1AB-2005.pdf
* http://wiki.wireshark.org/LinkLayerDiscoveryProtocol
Development
-----------
During development, you may want to execute lldpd at its current
location inside of doing 'make install'. The correct way to do this is
to issue the following command:
sudo libtool execute src/daemon/lldpd -L $PWD/src/client/lldpcli -d
You can append any further arguments. If lldpd is unable to find
'lldpcli' it will start in an unconfigured mode and won't send or
accept LLDP frames.
Embedding
---------
To embed lldpd into an existing system, there are two point of entries:
1. If your system does not use standard Linux interface, you can
support additional interfaces by implementing the appropriate
'struct lldpd_ops'. You can look at
'src/daemon/interfaces-linux.c' for examples. Also, have a look at
'interfaces_update()' which is responsible for discovering and
registering interfaces.
2. 'lldpcli' provides a convenient way to query 'lldpd'. It also
comes with various outputs, including XML which allows one to
parse its output for integration and automation purpose. Another
way is to use SNMP support. A third way is to write your own
controller using 'liblldpctl.so'. Its API is described in
'src/lib/lldpctl.h'. The custom binary protocol between
'liblldpctl.so' and 'lldpd' is not stable. Therefore, the library
should always be shipped with 'lldpd'. On the other hand, programs
using 'liblldpctl.so' can rely on the classic ABI rules.