]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/lldpd-structs.c
Support for modifying PortID TLV
authorSam Tannous <stannous@cumulusnetworks.com>
Wed, 21 May 2014 14:11:24 +0000 (10:11 -0400)
committerVincent Bernat <vincent@bernat.im>
Wed, 21 May 2014 15:19:13 +0000 (17:19 +0200)
commit8fbd319539577cd2ad3ba95329dc7881849e4827
tree5cc0538c2b55845a7fc49b0e399d4610b9bca3b5
parentba66666322f9c9a29a4afbfa30e3ed55a6a76d6b
Support for modifying PortID TLV

This patch adds the ability to change the behavior of what
lldpd sends in the PortID TLV.

By default, lldpd sets the MAC address in the PortID and the ifname
in the PortDescr field.  This patch allows the user to
configure lldpd via the CLI (lldpcli or /etc/lldpd.conf)
to send either the interface name
(ifname) or the MAC address in the PortID TLV.

Signed-off-by: Sam Tannous <stannous@cumulusnetworks.com>
src/client/conf-lldp.c
src/client/display.c
src/daemon/client.c
src/daemon/interfaces-linux.c
src/daemon/interfaces.c
src/daemon/lldpd.h
src/lib/atom-private.c
src/lib/lldpctl.h
src/lldp-const.h
src/lldpd-structs.c
src/lldpd-structs.h