Re: IP Address of an interface

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/29/04


Date: Thu, 29 Apr 2004 02:18:47 -0400

In article <62166923.0404281907.2e0cd317@posting.google.com>,
 pedro_roure@terra.com.br (Pedro Roure) wrote:

> How can I get an IP address of an interface, like "eth0" ?

The SIOCGIFADDR ioctl. See chapter 16 of Unix Network Programming,
Vol.1.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***