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

Re: where does ifconfig get ppp0 inet addr?

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:

Debian's search tool is down.

Anybody know where ifconfig gets the inet addr?

ppp0      Link encap:Point-to-Point Protocol
inet addr: P-t-P: Mask:

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

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

- Aaron

Aaron Hall           :    I do quarrel with logic that says, "Stupid people
ahall@vitaphone.net  :    are associated with X, therefore X is stupid."
                     :    Stupid people are associated with everything.
                     :                                       -- Larry Wall

Reply to: