TCPIP_STACK_NetDefaultSet Function

C

bool TCPIP_STACK_NetDefaultSet(
    TCPIP_NET_HANDLE netH
);

Description

This function sets the current default network interface in the TCP/IP stack.

Preconditions

The TCP/IP stack should have been initialized by TCPIP_STACK_Initialize() and the TCPIP_STACK_Status() returned SYS_STATUS_READY. The network interface should be up and running.

Parameters

ParametersDescription
netHInterface handle.

Returns

  • True - If success.

  • False - If failed (the old interface does not change).

Remarks

None.