[ale] Pulling IP address from server.

Chris Fowler cfowler at outpostsentinel.com
Mon Jul 27 14:21:42 EDT 2009


On Mon, 2009-07-27 at 12:29 -0400, Brandon Checketts wrote:
> 
> I looked through the output of 'strace ifconifg'  to see where
> ifconfig
> is getting it from, and it looks like it may come from
> /proc/net/if_inet6 or /proc/net/dev  or possibly /proc/net/unix.


No.

If config gets a list of interfaces from /proc/net/dev.

It then gets information for each interface from the kernel.  Netmask,
IP, etc.  Using ioctl()






More information about the Ale mailing list