NetIF_MTU_Get
Get network interface’s MTU.
Files
net_if.h/net_if.c
Prototype
NET_MTU NetIF_MTU_Get(NET_IF_NBR if_nbr,
NET_ERR *p_err);Arguments
if_nbr
Network interface number to get MTU.
p_err
Pointer to variable that will receive the return error code from this function:
NET_IF_ERR_NONENET_IF_ERR_INVALID_IFNET_ERR_FAULT_LOCK_ACQUIRE
Returned Value
Network interface’s MTU, if no errors.
0, otherwise.
Required Configuration
None.
Notes / Warnings
None.