Contents

SCNetworkInterfaceCopyMTU(_:_:_:_:)

Returns the current MTU setting and the range of allowable values for the specified network interface.

Declaration

func SCNetworkInterfaceCopyMTU(_ interface: SCNetworkInterface, _ mtu_cur: UnsafeMutablePointer<Int32>?, _ mtu_min: UnsafeMutablePointer<Int32>?, _ mtu_max: UnsafeMutablePointer<Int32>?) -> Bool

Parameters

  • interface:

    The network interface.

  • mtu_cur:

    On output, the current MTU setting for the interface.

  • mtu_min:

    On output, the minimum MTU setting for the interface. If negative, the minimum setting could not be determined.

  • mtu_max:

    On output, the maximum MTU setting for the interface. If negative, the maximum setting could not be determined.

Return Value

TRUE if the requested information has been returned.

See Also

Configuring Network Interfaces