[Midnightbsd-cvs] [MidnightBSD/src] f75510: Bring in a patch for SIOCGIFDATA
Lucas Holt
noreply at github.com
Thu Sep 24 10:42:43 EDT 2020
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: f75510b52b00ce4e8ccbed4274759944532d5c29
https://github.com/MidnightBSD/src/commit/f75510b52b00ce4e8ccbed4274759944532d5c29
Author: Lucas Holt <luke at foolishgames.com>
Date: 2020-09-24 (Thu, 24 Sep 2020)
Changed paths:
M share/man/man9/ifnet.9
M sys/net/if.c
M sys/sys/sockio.h
Log Message:
-----------
Bring in a patch for SIOCGIFDATA
For interfaces that do not support SIOCGIFMEDIA (for which there are quite a few) the only fallback is to query the interface for if_data->ifi_link_state.
While it's possible to get at if_data for an interface via getifaddrs(3) or sysctl, both are heavy weight mechanisms.
SIOCGIFDATA is a simple ioctl to retrieve this fast with very little resource use in comparison.
This implementation mirrors that of other similar ioctls in FreeBSD.
Other BSD's support SIOCGIFDATA and I would like FreeBSD to as well.
Obtained from Roy Marples, FreeBSD https://reviews.freebsd.org/D26538
Commit: 57be5c6bf3e70d227d00df08ce8d3b70d0da4201
https://github.com/MidnightBSD/src/commit/57be5c6bf3e70d227d00df08ce8d3b70d0da4201
Author: Lucas Holt <luke at foolishgames.com>
Date: 2020-09-24 (Thu, 24 Sep 2020)
Changed paths:
M UPDATING
Log Message:
-----------
document SIOCGIFMEDIA add
Compare: https://github.com/MidnightBSD/src/compare/44bdf2838ad6...57be5c6bf3e7
More information about the Midnightbsd-cvs
mailing list