]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: don't remove interfaces when they are released from a bridge
authorVincent Bernat <vincent@bernat.im>
Fri, 15 Sep 2017 20:38:52 +0000 (22:38 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 15 Sep 2017 20:38:52 +0000 (22:38 +0200)
commit703f6a0d2b1a792a3489e02b06e9f92c7ed9e49c
tree24d32c61d341cb8a2c00d7f4b54e11049007b70c
parent3db342340baabfe79fc2d7a1a69502569cb7c597
netlink: don't remove interfaces when they are released from a bridge

When released from a bridge, a RTM_DELLINK is sent. We detect there is
an upper device and turn thay into a RTM_NEWLINK. If the interface was
really removed, we would get two RTM_DELLINK (one with master, one
without).

On most setups, another RTM_NEWLINK was sent due to change of promisc
status.
NEWS
src/daemon/netlink.c
tests/integration/fixtures/network.py
tests/integration/test_interfaces.py