Contents

setMaxTransferUnit

Sets the maximum transfer unit for this interface.

Declaration

virtual bool setMaxTransferUnit(
 UInt32mtu );

Parameters

  • mtu:

    The interface MTU size in bytes.

Return Value

Always returns true.

Overview

Calls ifnet_set_mtu if the interface is attached to the network stack, and updates the kIOMaxTransferUnit property using the provided value.

See Also

Miscellaneous