Ethereal-dev: Re: [ethereal-dev] AIX: gtk problem solved, now an ethereal problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 9 Nov 1999 13:56:36 -0800 (PST)
> > "libpcap" also uses SIOCGIFCONF; does it also need to be changed to use
> > OSIOCGIFCONF on AIX?
> 
> That depends on the libpcap code, if there is no special construction
> (e.g. #ifdef AIX) to handle the specificity of the AIX ioctl, the code
> is likely broken and the Old ioctl should be used also (I have no time
> to check now).

It turns out that the only code that uses it is "pcap_lookupdev()",
a/k/a "pick some interface and give me its name"; "libpcap" itself
doesn't use it, it just exports it, "tcpdump" uses it only if you don't
explicitly tell it what device to use, and Ethereal doesn't use it at
all, so if it's broken, the only effect would be that you'd have to give
"tcpdump" a "-i" flag - it'd probably complain if you didn't.

Any idea what the right test should be to see whether to use SIOCGIFCONF
or OSIOCGIFCONF?  Is there a built-in ifdef we should use (e.g., AIX),
or do we need to put in, say, a configure-script test?