Contents

SCNetworkInterfaceCreateWithInterface(_:_:)

Creates a new network interface layered on top of the specified interface.

Declaration

func SCNetworkInterfaceCreateWithInterface(_ interface: SCNetworkInterface, _ interfaceType: CFString) -> SCNetworkInterface?

Parameters

  • interface:

    The network interface.

  • interfaceType:

    The type of interface to layer on top of the network interface specified in interface.

Return Value

A reference to the new network interface. You must release the returned value.

Discussion

You can use this function to create a “PPP” interface on top of a “modem.”

See Also

Configuring Network Interfaces