On Mit, 2003-03-19 at 12:36, [EMAIL PROTECTED] wrote: > I am looking for C code in order to find the IP address of each ethX > interface in a Linux machine.
just take a look at the SIOCGIFADDR ioctl. You can use SIOCGIFNETMASK and SIOCGIFBRDADDR to find out the netmask and broadcast, too. -Andreas -- Andreas Liebe/Darmstadt University of Technology/+49 6151 16-3150/3050(FAX) Fata volentem ducunt, nolentem trahunt. (Seneca) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

