[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where does ifconfig get ppp0 inet addr?



Aaron Hall wrote:
On Fri, 6 Jan 2006, Hugo Vanwoerkom wrote:

Joachim Fahnenmüller wrote:
Hi Hugo,

On Fri, Jan 06, 2006 at 12:44:34PM -0600, Hugo Vanwoerkom wrote:
Hi,

Debian's search tool is down.

Anybody know where ifconfig gets the inet addr?

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

What sort of interface is it, and how do you bring it up? E. G. if it is a modem
connection to an ISP, the IP address is probably given by the ISP
Regards

I did not phrase that question correctly.
I mean, where in the /proc or /sym directories is the IP address stored.
From someplace there ifconfig gets it.
Indeed initially it is provided by the ISP.

A (very) quick look at the ifconfig source in net-tools suggests that it
calls glibc for the information. In particular, it looks like it depends
on interfaces in /usr/include/net and /usr/include/netinet, among other
places.

I peeked too and it ain't that simple is it ;-)

H






Reply to: