git: DragonFly_RELEASE_6_4 pf: Fix 4 uses of PF_ANEQ

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 10 18:25:09 PST 2023


commit 295a26a640722d86092985f0bcbafac82aac9583
Author: Kyle Butt <kyle at iteratee.net>
Date:   Fri Nov 10 06:17:28 2023 -0700

    pf: Fix 4 uses of PF_ANEQ
    
    The uses were depending on the old broken behavior of always checking
    against IPv6 unless the family was specifically AF_INET. In 2 cases, the
    AF argument was 0 seeking for a full comparison. Pass AF_INET6 instead
    for these two cases to restore the intended behavior of a full
    comparison. The other two cases appear to just be uncaught typos. They
    are inside of an AF_INET6 case, and there is no obvious reason why you
    would want an AF_INET comparison in this case.

Summary of changes:
 sys/net/pf/pf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/295a26a640722d86092985f0bcbafac82aac9583


-- 
DragonFly BSD source repository


More information about the Commits mailing list