]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: don't consider a lower interface when in another namespace
authorVincent Bernat <vincent@bernat.im>
Sat, 12 Mar 2016 16:39:02 +0000 (17:39 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 12 Mar 2016 16:39:02 +0000 (17:39 +0100)
commitc04fafa76c3daf0d147d9a84bed46ee1883b9de6
tree628672761408ce7a7c570a1c1dd82bf0bd588fec
parent8755512e8b52b20a7fe48b53d2c8930d63824be7
netlink: don't consider a lower interface when in another namespace

The index of an interface is specific to a namespace, don't try to
interpret anything about interfaces belonging to another namespace. This
change unbreak some scenario, like in an appropriate loop detection
because an interface from another namespace is detected (vlan100 ->
veth1 -> veth0 with same index as vlan100). However, it is not possible
to exactly detect a physical interface anymore since we don't really
know what can be on the other side of the interface (in the other
namespace). However, bridged, bonded and VLAN interfaces should be safe.
NEWS
include/linux/if_link.h
src/daemon/netlink.c