Re: where does ifconfig get ppp0 inet addr?
On Fri, 6 Jan 2006, Hugo Vanwoerkom wrote:
Joachim Fahnenmüller wrote:
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:126.96.36.199 P-t-P:188.8.131.52
What sort of interface is it, and how do you bring it up? E. G. if it is a
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 Hall : I do quarrel with logic that says, "Stupid people
email@example.com : are associated with X, therefore X is stupid."
: Stupid people are associated with everything.
: -- Larry Wall