]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces-bsd: do not consider an interface when it is down fix/bsd-iface-down 476/head
authorVincent Bernat <vincent@bernat.ch>
Sun, 29 Aug 2021 19:57:07 +0000 (21:57 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sun, 29 Aug 2021 20:48:20 +0000 (22:48 +0200)
commitbf002a4b3d55b2eeea2149e3c269ee8c767a27c4
tree74e6fd2186c46944f58ca7b34a532078b67b6df6
parenta818d643bd5a8d862c3fff79b82952e91e824408
interfaces-bsd: do not consider an interface when it is down

At least on OpenBSD, an interface can be oper down while
`IFF_RUNNING`. Check the link state and removes the `IFF_RUNNING` flag
in this case. Something similar may work with FreeBSD and NetBSD, but
it may not be needed. It does not work with MacOS.

Fix #474
src/daemon/interfaces-bsd.c