Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.sbin/npf/npfctl
Module Name: src
Committed By: joe
Date: Mon Nov 23 14:44:48 UTC 2026
Modified Files:
src/usr.sbin/npf/npfctl: npf_data.c npfctl.h
Log Message:
Fix subnet mask extraction from address quad dot mask notation
when a rule has an address in 192.168.64.7/255.255.255.0
which is to be converted to block notation /24, it is expected
to reduce the count of trailing zeros from maximum masks for each family.
ensure the mask is set to max_mask to avoid it from crashing when using
that notation. also make noise when mask is bigger than expected.
/40 on a rule should make noise and not silently seg fault.
tests included in rump
reviewd by martin
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.sbin/npf/npfctl/npf_data.c
cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/npf/npfctl/npfctl.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index