K 10 svn:author V 2 kp K 8 svn:date V 27 2021-12-12T18:12:21.135610Z K 7 svn:log V 967 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 Tested by: Ozkan KIRIK MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D33236 (cherry picked from commit 6d4baa0d011cb3e78b4b08415568e71c0aab00fe) Git Hash: d41caea44ba9f676b72d9a27d53de520ef61e196 Git Author: kp@FreeBSD.org END