Re: C code to find interface IP address

2003-03-20 Thread mtsouk
printf("\n"); } I want to "lock" the executable with the machine IP. many many thanks, Mihalis. On Wed, 19 Mar 2003, Bob Proulx wrote: > Date: Wed, 19 Mar 2003 11:58:51 -0700 > From: Bob Proulx <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] >

Re: C code to find interface IP address

2003-03-19 Thread Bob Proulx
[EMAIL PROTECTED] wrote: > I am looking for C code in order to find the IP address of each ethX > interface in a Linux machine. Curious as to why you need that information. Very few programs ever need to tread there. Note that network devices can be configured or unconfigured at any time. Which

Re: C code to find interface IP address

2003-03-19 Thread Andreas Liebe
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. -Andr

C code to find interface IP address

2003-03-19 Thread mtsouk
Hello to everyone. I am looking for C code in order to find the IP address of each ethX interface in a Linux machine. many thanks in advance, Mihalis. - :wq -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]