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.