Ethereal

Re: [ethereal-dev] AIX: gtk problem solved, now an ethereal problem
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: November 1999


> > "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?


Powered by MHonArc 2.6.10