freebsd-dev/sys/netpfil/pf
Kristof Provost 6d4baa0d01 if_pflog: fix packet length
There were two issues with the new pflog packet length.
The first is that the length is expected to be a multiple of
sizeof(long), but we'd assumed it had to be a multiple of
sizeof(uint32_t).

The second is that there's some broken software out there (such as
Wireshark) that makes incorrect assumptions about the amount of padding.
That is, Wireshark assumes there's always three bytes of padding, rather
than however much is needed to get to a multiple of sizeof(long).

Fix this by adding extra padding, and a fake field to maintain
Wireshark's assumption.

Reported by:	Ozkan KIRIK <ozkan.kirik@gmail.com>
Tested by:	Ozkan KIRIK <ozkan.kirik@gmail.com>
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D33236
2021-12-04 08:42:55 +01:00
..
if_pflog.c if_pflog: fix packet length 2021-12-04 08:42:55 +01:00
if_pfsync.c pf: remove the flags argument from pf_unlink_state 2021-11-01 20:59:14 +01:00
in4_cksum.c
pf_altq.h pf: qid and pqid can be uint16_t 2021-09-10 17:07:57 +02:00
pf_if.c pf: switch kif counters to pf_counter_u64 2021-07-25 10:22:17 +02:00
pf_ioctl.c pf: add COMPAT_FREEBSD13 for DIOCKEEPCOUNTERS 2021-11-17 03:09:20 +01:00
pf_lb.c pf: selecting pf_map_addr is not an error 2021-10-16 09:32:15 +02:00
pf_mtag.h pf: fix netpfil.common.dummynet:pf_nat test 2021-11-23 16:46:35 +01:00
pf_norm.c pf: remove unused variables 2021-11-23 16:44:37 +01:00
pf_nv.c pf: ensure we populate dyncnt/tblcnt in struct pf_addr_wrap 2021-11-10 11:27:22 +01:00
pf_nv.h pf: Introduce pf_nvbool() 2021-10-13 12:01:09 +02:00
pf_osfp.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pf_ruleset.c pf: match keyword support 2021-07-17 12:01:08 +02:00
pf_syncookies.c pf: hook up adaptive mode configuration 2021-09-29 15:11:54 +02:00
pf_table.c pf: Remove unneeded NULL check 2021-07-08 10:32:33 +02:00
pf.c pf: add pf_bcmp_state_key 2021-11-28 20:15:45 +01:00
pf.h pf: import pf_set_protostate() from OpenBSD 2021-09-01 12:02:19 +02:00