Subject: CVS commit: basesrc/dist/ipf
To: None <source-changes@netbsd.org>
From: Martti Kuparinen <martti@netbsd.org>
List: source-changes
Date: 02/04/2002 21:07:48
Module Name: basesrc
Committed By: martti
Date: Mon Feb 4 19:07:48 UTC 2002
Modified Files:
basesrc/dist/ipf: parse.c
Log Message:
Fixed Darren's original IPv6 icmp-type patch (rev 1.8) to display
better error messages if the user tries to use symbolic names such
as "echo" and "echorep" in "ipv6-icmp ... icmp-type ..." rules.
Consider the following rules:
# cat /etc/ipf6.conf
pass in quick proto ipv6-icmp from any to any icmp-type 128
pass in quick proto ipv6-icmp from any to any icmp-type echo
Use of symbolic names give now the following error:
# ipf -Fa -6f /etc/ipf6.conf
2: Unknown ICMPv6 type (echo) specified (use numeric value instead)
The first rule with numeric value will work as expected:
# ipfstat -6hi
0 pass in quick proto ipv6-icmp from any to any icmp-type 128
NOTE: You MUST use numerical values for ICMPv6 types. See
/sys/netinet/icmp6.h for available codes!
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 basesrc/dist/ipf/parse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.