use crateOperState;
use ;
/// Reads the current operational state of `if_name` by issuing a fresh `SIOCGLIFFLAGS`
/// and deriving state from `IFF_UP`/`IFF_RUNNING`, same as the BSD backend.
///
/// Tries an `AF_INET` socket first, then `AF_INET6`, since a v6-only logical interface
/// name may not resolve over an `AF_INET` one.