Re: Problem with tcpdump-3.4a6 & kernel-2.2.3

Andi Kleen (ak@muc.de)
Sat, 27 Mar 1999 12:29:05 +0100


On Fri, Mar 26, 1999 at 04:01:52PM +0100, Simon Elbaz wrote:
> Hi,
> I have problems with the kernel-2.2.3.
>
> obelix:~# tcpdump -i eth0
> tcpdump: SO_ATTACH_FILTER: No such file or directory(2)
>
> whereas it seems to be operational under kernel-2.1.131.
> I have checked that my kernel allows socket filtering by enabling the
> option and recompiling it. But nothing has changed :-( !

You probably have the wrong includes for compiling libpcap. The libpcap
has to be compiled with the sock_fprog declaration from the
/usr/include/linux/filter.h of a 2.2.3 kernel. The sock_fprog declaration
in the lbl includes that are part of the libpcap distribution are
not binary compatible.

-Andi

-- 
This is like TV. I don't like TV.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/