git: pf - Fix PF_AEQ and PF_ANEQ macro checks

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jul 9 20:15:26 PDT 2023


commit 29bc5c0c6fa27106d24706ab1afcceabfecfbf86
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jul 8 18:04:29 2023 -0700

    pf - Fix PF_AEQ and PF_ANEQ macro checks
    
    * These macros were improperly checking IPV6 addresses in IPV4 packets
      when the IPV4 test fails.  While the resulting conditional still works
      (the IPV6 test is guaranteed to also fail in this case), the code was
      overrunning the packet header in some cases by accessing IPV6 fields
      beyond the end of an IPV4 packet.
    
    * Fix the macros.

Summary of changes:
 sys/net/pf/pfvar.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29bc5c0c6fa27106d24706ab1afcceabfecfbf86


-- 
DragonFly BSD source repository


More information about the Commits mailing list