PPP_GetLocalIpv4Addr Function

C

uint32_t PPP_GetLocalIpv4Addr(DRV_HANDLE hMac);

Returns

Current IPv4 local addressOr 0 if an error

Description

This function gets the PPP local IPv4 address currently assigned for the PPP driver

Remarks

This should be the IPv4 address passed at the PPP initializationIt could be a peer suggested address if the configuration address was 0or the peer suggested a different address.

Preconditions

The PPP module must be initialized.

Parameters

hMac - driver handle (obtained by calling TCPIP_MAC_Open/DRV_PPP_MAC_Open)