|Note:||The content on this page has been deprecated.|
|For the new content, please see tfNgGetPt2PtPeerIpAddress().|
|ttUserIpAddress * ifIpAddress|
This function is used to get the PPP address that the remote PPP has used (respectively SLIP address of the remote SLIP). This function should be called after tfOpenInterface() has completed successfully.
If a default gateway needs to be added for that interface, then the retrieved IP address should be used to add a default gateway through the corresponding interface.
If a static route needs to be added for that interface, then the retrieved IP address should be used to add a static route through the corresponding interface.
- The interface to get the peer's IP address from.
- The pointer to the buffer where the peer's PPP IP address will be stored.
- Invalid parameter or the device does not support PPP.
- The interface is not configured.