www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


Dev_Set_IfaceMTU

Set device interface MTU.

int far Dev_Set_IfaceMTU( DevUserIfaceHandle IfaceHandle,
                          int ifMTU);

Parameters

DevHandlePtr

Device handle

ifMTU

The Maximum Transmission Unit (MTU) for a device. [bytes]

Return Value

0: success
Non-zero: Error code

Comments

The minimum MTU for IPv4 networks is 68 bytes.   For IPv6 the minimum is 1280 bytes.

The device handle may be obtained using the Dev_Get_Handle_By_Name() API.

See Also

RTOS API

On the first call, this library function invokes a software interrupt which modifies the code at the calling site inside your application program.   A direct FAR JMP into the @CHIP-RTOS-x86 implementation for this function is installed so that on return and on any subsequent calls to this API this dynamic link reaches the function's implementation directly.

Related Topics

TCP/IP Device Driver overview

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    n/an/an/aV1.36V1.36

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.20

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document