]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: include anchor path when hashing a rule
authorMateusz Guzik <mjg@FreeBSD.org>
Mon, 21 Mar 2022 16:34:42 +0000 (16:34 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 28 Mar 2022 11:44:39 +0000 (11:44 +0000)
commit2f968abce5439d5a71b6b685416b219f0450fd5b
tree4ed1f78b20465c9a10806dc0c88c9b4c5443e176
parent1b8b69508bc55a797ba344f95f05978408629e25
pf: include anchor path when hashing a rule

Otherwise all anchors hash to the same value.

Note this can result in checksum mismatches between pfsynced hosts,
but it has to be sorted out as the previously computed checksum
would fail to indicate changed anchors.

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