Hello, I am trying to write a small program in C that just outputs the IP address of an arbitrary network interface (like ifconfig, but only the address). The problem is, I don't know how I can determine the address and my programming experience is too limited in order to fully understand the ifconfig source code (I think ifconfig determines the address through the function in_status() in ifconfig.c, though I don't comprehend it).
It would be nice if anybody could point out how I should proceed or where I can find more information. Thanks a lot in advance, Andreas PS: I apologize if this is the wrong list for my questions. Please also excuse any language mistakes since English is not my native language. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message