git: pf: Fix 4 uses of PF_ANEQ

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 10 18:24:47 PST 2023


commit 4a513d79a171dfc53cf760fe4e4dfd4a4fa03a49
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/4a513d79a171dfc53cf760fe4e4dfd4a4fa03a49


-- 
DragonFly BSD source repository


More information about the Commits mailing list