TCPIP_IPV6_DefaultRouterGet Function

C

const IPV6_ADDR* TCPIP_IPV6_DefaultRouterGet(
    TCPIP_NET_HANDLE netH
);

Description

This function returns the current router address for a specified interface.

Preconditions

The IPv6 stack is initialized and the interface is up and configured.

Parameters

ParametersDescription
netHThe interface for which to return the router address.

Returns

  • Valid IPV6_ADDR pointer - If the interface exists and a valid router address exists.

  • 0 - If the interface does not exist and a valid router address does not exist.

Remarks

None.