[Bug 239380] sys.netpfil.pf.forward.{v4,v6} and sys.netpfil.pf.set_tos.v4 fail on i386

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 6 13:33:11 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239380

--- Comment #17 from Bjoern A. Zeeb <bz at FreeBSD.org> ---
Created attachment 208911
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=208911&action=edit
Fixes for scapy bpf on FreeBSD (i386)

Hi,

this diff is from the installed version of scapy and not relative to the port.
It fixes both the alignment on (32bit) platforms where sizeof(long) == 4 and
for i386 the offset on the bpf_hdr struct as time_t still is 32bit.

Scapy does not set any more specific BPF_T_* time option, so we are not
switching to bpf_xhdr (which would probably be the better long-term solution). 
That said, the current situation in FreeBSD bpf is a mess until we BURN_BRIDGES
on the old bpf_hdr.

I have not yet submitted a ports PR or the change upstream to scapy.

This work was
Sponsored by:  Netflix

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list