Hi,

Ifconfig says:

...
ppp0      Link encap:Point-to-Point Protocol
inet addr:200.57.201.43 P-t-P:200.57.219.18 Mask:255.255.255.255
...

I want that inet addr (200.57.201.43) in a program and I prefer not to run the ifconfig command from it and grep it.

Does anyone know where else in the system that information resides?

I installed the net-tools source and looking at ifconfig.c it's not immediately obvious.

Hugo


--
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to