]> git.ipfire.org Git - thirdparty/lldpd.git/commit
[PATCH| lldpd: use bond slave real mac with locally administered bit set as sour
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sun, 11 Aug 2013 19:06:50 +0000 (21:06 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sun, 11 Aug 2013 19:30:15 +0000 (21:30 +0200)
commitdfbd7185f82325e404ecd81a1694d1d91b9d42cc
treeedeeb6c3d7bae935356d8585976db706e037a906
parent87bc6683c60245d8cd9fec4b45c55fc8c84e65ad
[PATCH| lldpd: use bond slave real mac with locally administered bit set as sour
ce man in lldp frames sent on bond slaves

By default lldpd sent src mac of zero for all lldp frames sent on bond
slaves. See https://tickets.cumulusnetworks.com/browse/CM-1283

This patch provides a few options to select the source address in lldp
trames sent on bonded slaves.

The problem with using the bond slave real mac in lldp frames
is described in https://github.com/vincentbernat/lldpd/issues/26

This patch provides 3 choices to src mac address selection on bond slaves:

# lldpcli help configure system bond-slave-src-mac-type

-- Set LLDP bond slave src mac type
      real  Real mac
      zero  All zero mac
     local  Real Mac with locally administered bit set

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Vincent Bernat <bernat@luffy.cx>
src/client/conf-system.c
src/client/display.c
src/client/lldpcli.8
src/daemon/client.c
src/daemon/interfaces-linux.c
src/daemon/lldpd.c
src/lib/atom-private.c
src/lib/lldpctl.h
src/lldp-const.h
src/lldpd-structs.h