Function SCNetworkInterfaceSetMTU

Source
pub unsafe extern "C-unwind" fn SCNetworkInterfaceSetMTU(
    interface: &SCNetworkInterface,
    mtu: c_int,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

For the specified network interface, sets the requested MTU setting.

Parameter interface: The desired network interface.

Parameter mtu: The desired MTU setting for the interface. If zero, the interface will use the default MTU setting.

Returns: TRUE if the configuration was updated; FALSE if an error was encountered.