Contents

SCNetworkInterfaceGetBSDName(_:)

Returns the BSD interface or device name for the specified interface.

Declaration

func SCNetworkInterfaceGetBSDName(_ interface: SCNetworkInterface) -> CFString?

Parameters

  • interface:

    The network interface.

Return Value

The BSD name associated with the interface (for example, en0), or NULL if no BSD name is available.

See Also

Configuring Network Interfaces