PPP gw and "local" IP

I can’t seem to find functions to get the local IP, after PPP to ISP, there should be a gateway IP, local IP DNS etc.

I can only find functions to get the Gateway IP.

Or can I enable DHCP on the PPP interface, so it happens automatically.

Felix