On Wed, Oct 8, 2008 at 5:22 PM, Ed Cashin <firstname.lastname@example.org>
On Tue, Oct 07, 2008 at 01:24:05PM +0100, Chris Webb wrote:
> Hi. I'm afraid this a bug I introduced with the refactoring of the bpf codeThanks for the patch. It appears in vblade-19, just released.
> into bpf.c so it could be used on both Linux and FreeBSD. The type of
> bpf_insn.k is incorrectly declared as long (32-bit on Linux, 64-bit on
> FreeBSD) rather than u_int32_t.
> The attached patch against stock vblade-18 should fix this regression. I
> also correct the type of bpf_program.bf_len, having checked what size type
> setsockopt SOL_SOCKET, SO_ATTACH_FILTER and ioctl BIOCSETF are expecting.
Ed Cashin <email@example.com>