K 10 svn:author V 6 emaste K 8 svn:date V 27 2021-12-13T00:30:16.432871Z K 7 svn:log V 761 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 Reviewed by: markj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26538 (cherry picked from commit c1aedfcbd9896401f637bc815ba4e51dca107f6f) Git Hash: faa8d81cf7a25db3b7ea45acbef0cb28d80eefe0 Git Author: emaste@FreeBSD.org END