/[base]
ViewVC logotype

Revision 289932


Jump to revision: Previous Next
Author: kp
Date: Sun Oct 25 13:14:53 2015 UTC (8 years, 8 months ago)
Changed paths: 1
Log Message:
PF_ANEQ() macro will in most situations returns TRUE comparing two identical
IPv4 packets (when it should return FALSE). It happens because PF_ANEQ() doesn't
stop if first 32 bits of IPv4 packets are equal and starts to check next 3*32
bits (like for IPv6 packet). Those bits containt some garbage and in result
PF_ANEQ() wrongly returns TRUE.

Fix: Check if packet is of AF_INET type and if it is then compare only first 32
bits of data.

PR:		204005
Submitted by:	MiƂosz Kaniewski


Changed paths

Path Details
Directoryhead/sys/net/pfvar.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27