Subject: bin/15460: ICMPv6 type in ipfilter (src/dist/ipf/parse.c rev. 1.8)
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/02/2002 16:37:21
>Number:         15460
>Category:       bin
>Synopsis:       ICMPv6 type in ipfilter (src/dist/ipf/parse.c rev. 1.8)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 01 23:38:00 PST 2002
>Release:        NetBSD 1.5ZA
	I found recent changes in src/dist/ipf/parse.c. (rev. 1.8)
	cvs log shows ipfstat will print ICMPv6 type in ipf rule.

	from cvs log parse.c
	> after this fix:
	>   0 pass in quick proto ipv6-icmp from any to any icmp-type 8

	Is icmp type 8 correct? If it means ICMP ECHO REQUEST, it should
	be type 128.

	from src/sys/netinet/icmp6.h
	> #define ICMP6_ECHO_REQUEST		128	/* echo service */

	I didn't test it. If I'm wrong, sorry ;)
	See src/sys/netinet/{fil.c, ip_fil.c}. icmptoicmp6types and
	icmptoicmp6unreach are available.

	I don't know these conversion table and framework matches the
	Internet standards. (RFC, etc...)