Function SCNetworkInterfaceGetBSDName

Source
pub unsafe extern "C-unwind" fn SCNetworkInterfaceGetBSDName(
    interface: &SCNetworkInterface,
) -> Option<CFRetained<CFString>>
Available on crate feature SCNetworkConfiguration only.
Expand description

Returns the BSD interface (en0) or device name (modem) for the interface.

Parameter interface: The network interface.

Returns: The BSD name associated with the interface (e.g. “en0”); NULL if no BSD name is available.