pf: don't clobber log flag
authorKristof Provost <kp@FreeBSD.org>
Tue, 2 Jan 2024 13:54:06 +0000 (14:54 +0100)
committerKristof Provost <kp@FreeBSD.org>
Thu, 4 Jan 2024 22:08:08 +0000 (23:08 +0100)
commit5f840a1758b4bbb4892118f43f40c6487c17aeba
tree34e324f2a3a2715333bc33cc2c3457394a40565a
parentb1e82d33193b83d86d46483b4ddfe295becd80c4
pf: don't clobber log flag

If we decide to discard a packet due to unexpected IP options or
unsupported headers we set pd.act.log. However, this can later get
overwritten when we copy the state's saved actions over.

Merge the two log fields to ensure we log as expected.

Sponsored by: Rubicon Communications, LLC ("Netgate")
sys/netpfil/pf/pf.c