Ed Maste c1aedfcbd9 add SIOCGIFDATA ioctl
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.

Submitted by:	Roy Marples <roy@marples.name>
Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D26538
2020-09-28 16:54:39 +00:00
..
2020-04-24 01:27:25 +00:00
2020-09-25 21:19:56 +00:00
2020-09-25 10:05:38 +00:00
2020-09-27 18:39:15 +00:00
2020-06-04 17:20:58 +00:00
2020-09-17 22:29:38 +00:00
2020-09-28 16:54:39 +00:00
2020-09-28 14:11:53 +00:00
2020-08-31 16:17:28 +00:00
2020-09-15 15:21:29 +00:00
2020-09-28 16:54:39 +00:00
2020-09-15 22:06:36 +00:00