]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
BSD: treat LINK_STATE_UNKNOWN as DOWN if media is invalid
authorRoy Marples <roy@marples.name>
Sat, 26 Jan 2019 00:08:43 +0000 (00:08 +0000)
committerRoy Marples <roy@marples.name>
Sat, 26 Jan 2019 00:08:43 +0000 (00:08 +0000)
commit6deb24e6c8671b470d7b0de00a4d751f532bd5c1
tree6c1b535d692ae0c96d5a4cb9a70bdb82ad23e9fa
parent81917252aca2073c8e7a80f80ea46f9b23e37607
BSD: treat LINK_STATE_UNKNOWN as DOWN if media is invalid

On BSD, some interfaces might emit RTM_IFINFO before the link state
has initialised. Mainly wireless cards.
If the intial carrier call says media state change is valid,
we need to treat LINK_STATE_UNKNOWN as LINK_DOWN rather than
LINK_UP.
src/dhcpcd.h
src/if-bsd.c
src/if.c