]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldp: when MSAP changes, send a shutdown LLPDU
authorVincent Bernat <vincent@bernat.im>
Sun, 4 Jan 2015 17:13:23 +0000 (18:13 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 4 Jan 2015 17:13:23 +0000 (18:13 +0100)
commitacb5f65b98b9ea66bd68bcd9a0e807f1e2e6b507
treefab91fed9bfb546f66b3a5a6900cb41b18486388
parentb1785ed5254b628622ef2d6906285a5c6567f96b
lldp: when MSAP changes, send a shutdown LLPDU

Chassis ID and port ID are not supposed to change. However, it is
possible for the port ID to change (for example, if the port name
changes or if the MAC addresses change). Since they should be constant,
we "fix" that by sending a shutdown LLPDU before any broadcasting any
change.

As a provision, this also applies to chassis ID even if it is currently
not possible for it to be changed.
src/daemon/lldp.c
src/daemon/lldpd.c
src/lldpd-structs.h