Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Set network interface’s MTU.

Files

net_if.h/net_if.c

Prototype

Arguments

if_nbr

Network interface number to set MTU.

mtu

Desired maximum transmission unit size to configure.

p_err

Pointer to variable that will receive the return error code from this function:

NET_IF_ERR_NONE
NET_IF_ERR_NULL_FNCT
NET_IF_ERR_INVALID_IF
NET_IF_ERR_INVALID_CFG
NET_IF_ERR_INVALID_MTU
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

None.

Required Configuration

None.

Notes / Warnings

Additional error codes may be returned by the specific interface or device driver.