]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces-bsd: do not consider an interface when it is down
authorVincent Bernat <vincent@bernat.ch>
Sun, 29 Aug 2021 19:57:07 +0000 (21:57 +0200)
committerVincent Bernat <vincent@bernat.ch>
Mon, 30 Aug 2021 05:26:20 +0000 (07:26 +0200)
commitb78587a4c4942fa56b7ac78293bb67ef70f834f7
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