Contents

ifnet_set_mtu

Declaration

errno_t ifnet_set_mtu(ifnet_t interface, u_int32_t mtu);

Parameters

  • interface:

    The interface.

  • mtu:

    The new MTU.

Return Value

0 on success otherwise the errno error.

Discussion

Sets the value of the MTU in the interface structure. Calling this function will not notify the driver that the MTU should be changed. Use the appropriate ioctl.

This function is intended to be called by the driver. A kext must not call this function on an interface the kext does not own.

See Also

Network Kernel Extensions