diff options
author | 2014-11-25 17:03:03 +0000 | |
---|---|---|
committer | 2014-11-25 17:03:03 +0000 | |
commit | 98de8786ce32a37c9ef8ac1b216784e47b2f5278 (patch) | |
tree | 20ae0ff1f9c258708765c01af8b30d913b4d6193 /lib/libc | |
parent | Move guts of setbuf.3 into setvbuf.3 to make it clear which one (diff) | |
download | wireguard-openbsd-98de8786ce32a37c9ef8ac1b216784e47b2f5278.tar.xz wireguard-openbsd-98de8786ce32a37c9ef8ac1b216784e47b2f5278.zip |
r1.118 starting using LINK_STATE_IS_UP() to check the link status
info provided in RTM_IFINFO messages. But it didn't replicate the
checks for IFI_NOMEDIA and (IFF_UP | IFF_RUNNING) used in
interface_status() to set ifi->linkstat. So the test (LINK_STATE_IS_UP()
!= ifi->linkstat) was comparing kiwi fruit and hairballs.
Do the additional checks using info present in the RTM_IFINFO
message. As a result interface_status() need not be called to
update ifi->linkstat. Thus avoiding opening/closing a socket and
some ioctls to re-obtain the info already provided in the RTM_IFINFO
message.
Using RTM_IFINFO data ok mpi@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions