Re: LSF and SOCK_PACKET

kuznet@ms2.inr.ac.ru
Thu, 15 Oct 1998 23:26:26 +0400 (MSK DST)


Hello!

> - There are races while removing/setting the new filter (the new filter
> can be used with the old sk->filter size, the old filter is still available
> to interrupts after it is freed etc. etc.). The same in
> SO_DETACH_FILTER (the filter is freed first then sk->filter is cleared)

Oops 8) Seems, it should be reorganized to use single pointer
and to make xchg() (I still hope xchg() is atomic on pointers 8))

Will you fix it? I had to modify it a bit to make it useful
for anything but raw packet socket in any case.
Now it is fed with packets without IP headers for udp/tcp/raw,
and without ll headers for dgram, so that bpf is practically useless.
I can send you my local version tomorrow and will put new libpcap/tcpdump
to ftp.inr.ac.ru too.

Alexey

-
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/