opnsense-src/sys
Kristof Provost 80c2f5fc0a 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

(cherry picked from commit 6d4baa0d01)
2021-12-11 10:38:50 +01:00
..
amd64 x86: remove unused T_USER flag 2021-12-10 14:31:20 -04:00
arm omap4: Fix a few typos in source code comments 2021-12-07 19:52:00 +01:00
arm64 arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE 2021-12-07 14:13:47 -04:00
bsm
cam cam: Unbreak CAM_IO_STATS build 2021-12-06 08:55:58 -07:00
cddl kern: drop remaining references to removed makesyscalls.sh 2021-09-14 20:53:03 -05:00
compat LinuxKPI: add bcd.h 2021-11-21 18:15:58 +00:00
conf Remove references to sio(4) from NOTES 2021-12-10 14:31:21 -04:00
contrib kernel: deprecate Internet Class A/B/C 2021-12-10 10:24:15 -06:00
crypto aesni: Avoid a potential out-of-bounds load in AES_GCM_encrypt() 2021-11-23 09:32:33 -05:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev xhci: Add PCI IDs from recent Intel CPUs. 2021-12-11 00:17:16 -05:00
dts add rk3328 overlay for enabling analog sound 2021-11-21 12:04:42 +02:00
fs nfscl: Sanity check the Sequence slotid in reply 2021-12-10 18:28:14 -08:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom GEOM: Switch g_io_deliver() locking from cp to pp. 2021-12-07 23:06:25 -05:00
gnu
i386 x86: remove unused T_USER flag 2021-12-10 14:31:20 -04:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern imgact_aout.c: some style 2021-12-10 04:32:18 +02:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
modules Fix some modules to export more used symbols 2021-11-25 03:09:21 +02:00
net if_pflog: fix packet length 2021-12-11 10:38:50 +01:00
net80211 net80211(4): Fix a typo in a sysctl description 2021-12-07 19:53:33 +01:00
netgraph Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
netinet kernel: partially revert e9efb1125a15, default inet mask 2021-12-10 10:28:06 -06:00
netinet6 netinet6: Fix a typo in a sysctl description 2021-12-03 16:53:41 +01:00
netipsec netinet: Remove unneeded mb_unmapped_to_ext() calls 2021-12-01 07:43:18 -05:00
netpfil if_pflog: fix packet length 2021-12-11 10:38:50 +01:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs kernel: partially revert e9efb1125a15, default inet mask 2021-12-10 10:28:06 -06:00
nfsclient
nfsserver
nlm
ofed socket: Rename sb(un)lock() and interlock with listen(2) 2021-10-07 09:56:47 -04:00
opencrypto ktls: Split encrypt vs decrypt OCF counters. 2021-11-23 15:11:54 -08:00
powerpc arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE 2021-12-07 14:13:47 -04:00
riscv Implement GET_STACK_USAGE on remaining archs 2021-12-07 14:13:47 -04:00
rpc mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-29 20:34:54 -05:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys headers: Implement _ISOC11_SOURCES macro when __POSIX_C_SOURCE defined 2021-12-06 08:56:00 -07:00
teken
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools makesyscalls.lua: add a CAPENABLED flag 2021-10-20 00:19:56 +01:00
ufs ffs_softdep: Fix a typo in a source code comment 2021-11-28 12:43:32 +01:00
vm swap_pager.c: Remove MPSAFE and ARGSUSED annotations 2021-12-10 04:32:18 +02:00
x86 x86: remove unused T_USER flag 2021-12-10 14:31:20 -04:00
xdr
xen
Makefile