/
NetIF_MTU_Set
NetIF_MTU_Set
Set network interface’s MTU.
Files
net_if.h/net_if.c
Prototype
void NetIF_MTU_Set(NET_IF_NBR if_nbr, NET_MTU mtu, NET_ERR *p_err);
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.
, multiple selections available,
Related content
NetIF_MTU_Get
NetIF_MTU_Get
More like this
Network Interface Maximum Transmit Unit
Network Interface Maximum Transmit Unit
More like this
net_if_set_mtu
net_if_set_mtu
More like this
NetDev_Tx() (Ethernet)
NetDev_Tx() (Ethernet)
More like this
USBD_EP_MaxPktSizeGet
USBD_EP_MaxPktSizeGet
More like this
USBD_Vendor_Wr
USBD_Vendor_Wr
More like this