tcpdump mailing list archives

Re: SIOCGIFCONF under Linux on Itanium in 32 bit compatibility mode


From: Shaun <delius () progsoc uts edu au>
Date: Mon, 23 Feb 2004 11:11:22 +1100 (EST)


On Sun, 22 Feb 2004, Guy Harris wrote:

On Mon, Feb 23, 2004 at 10:38:05AM +1100, Shaun wrote:
This bites libpcap because when it attempts to read off the end of the
real end of the interfaces it finds an interface with an empty name and
fails to retrieve the flags for the interface, terminating the interface
finding procedure. The fix I commited to our internal licpcap is to
'break' out of the loop if we find an interface with a null name, does
anyone object to this approach for the mainline?

"Null" presumably meaning either an empty name?

Yep, an empty name (the name buffer is an array in the struct itself as
you know).

That's unlikely to appear in a valid list, so that's probably OK.  There
should probably be a big "XXX - Linux's support for IA-32 binaries is
broken in the following fashion..." comment for it.

Ok, I'm attaching the patch to this email.

(Presumably this bug has been reported to the appropriate kernel folks,
right?)

Nope, and I'd rather not have to if you're not going to force me.

Cheers,
Shaun

Attachment: pcap-ia64.patch
Description:


Current thread: