TCPIP_STACK_NetDefaultGet Function

C

TCPIP_NET_HANDLE TCPIP_STACK_NetDefaultGet();

Description

This function returns the current default network interface in the TCP/IP stack. This is the interface on which packets will be transmitted when the internal routing algorithm cannot detect a match for an outgoing packet.

Preconditions

The TCP/IP stack should have been initialized by TCPIP_STACK_Initialize() and the TCPIP_STACK_Status() returned SYS_STATUS_READY.

Returns

  • The default network interface.

Remarks

This function is intended for multi-hoed hosts, with the TCP/IP stack running multiple interfaces.