]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: clear IFF_SLAVE when no information on upper interface
authorVincent Bernat <vincent@bernat.im>
Sat, 21 Jan 2017 11:40:51 +0000 (12:40 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 21 Jan 2017 11:40:51 +0000 (12:40 +0100)
commit92c6dcfe24b2d3610723119e0b82cf9fd7d2008d
treeaa56163a2181dcdbe942e156fe090fc7926ba620
parentf8f9dcacda14654862c435f9a12c0bd1042db0bb
netlink: clear IFF_SLAVE when no information on upper interface

This means that we have just been enslaved, but don't know the
master. On Linux, enslaved device are handled differently of regular
device. When we are half-enslaved (no upper interface yet), we are still
a regular interface. When we are fully enslaved, we may do nothing
because there is no local change (since flags are the same). Therefore,
clear the flag to avoid this issue.
NEWS
src/daemon/netlink.c