tcpdump mailing list archives
Re: Libpcap and 32 bits binary compatibility with Linux x86_64
From: Guy Harris <guy () alum mit edu>
Date: Fri, 6 Nov 2009 23:45:33 -0800
On Nov 6, 2009, at 3:09 AM, Jean-Louis Charton wrote:
Is there any known issue running a 32 bits binary program that uses libpcap on ax86_64 Linux system ?
Yes, if libpcap is using the memory-mapped interface, and your kernel doesn't support version 2 of that interface:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517098 as version 1 isn't ILP32/LP64-independent. I'm not sure the workaround patch: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=30;filename=pcap-linux_tpacket_v1_workaround.patch;att=1;bug=517098works on big-endian systems. I'm also not sure what the right way would be for userland to inquire whether the kernel is ILP32 or LP64, to try to work around it in a byte-order-independent fashion (those are probably the two most likely programming models on Linux, although somebody might have a port to some weird 48-bit DSP or something such as that out there...).
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Libpcap and 32 bits binary compatibility with Linux x86_64 Jean-Louis Charton (Nov 06)
- Re: Libpcap and 32 bits binary compatibility with Linux x86_64 Guy Harris (Nov 06)