]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
BSD: Simplify carrier detection once more.
authorRoy Marples <roy@marples.name>
Thu, 2 May 2019 20:25:57 +0000 (21:25 +0100)
committerRoy Marples <roy@marples.name>
Thu, 2 May 2019 20:25:57 +0000 (21:25 +0100)
commitfbfa48bcfc205f3ab607ef0f9cd65e3e8948bc43
treebd2d8c89a0c12b2d6967d3272654ec272d2671d6
parent6d0d01facbab7c2afedf8c943f8d441564989ed8
BSD: Simplify carrier detection once more.

RTM_IFINFO messages now send the un-molested link status to
the main carrier handler which no longer polls on LINK_UNKNOWN.
Instead, we check carrier status directly, which if unsupported
we instead interface flags.

This is 2019, all interface drivers should report link status
correctly via RTM_IFINFO messages and trying to constantly work
around this is error prone and time consuming.
src/dhcpcd.c
src/if-bsd.c