Subject: Re: ipf and ipv6 with netbsd 1.5.3_ALPHA
To: None <xs@nitric.net>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-net
Date: 02/17/2002 15:00:16
I found the problem, please apply the following patch:

--- ip6_forward.c.orig	Sun Feb 17 12:02:57 2002
+++ ip6_forward.c	Sun Feb 17 13:53:17 2002
@@ -57,6 +57,7 @@
 #include <netinet6/ip6_var.h>
 #include <netinet/icmp6.h>
 #include <netinet6/nd6.h>
+#include <netinet6/ip6protosw.h>

 #ifdef IPSEC
 #include <netinet6/ipsec.h>
@@ -503,7 +504,8 @@
 	 * Run through list of hooks for output packets.
 	 */
 	m1 = m;
-	pfh = pfil_hook_get(PFIL_OUT, &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
+	pfh = pfil_hook_get(PFIL_OUT,
+		&inet6sw[ip6_protox[IPPROTO_IPV6]].pr_pfh);
 	for (; pfh; pfh = pfh->pfil_link.tqe_next)
 		if (pfh->pfil_func) {
 			rv = pfh->pfil_func(ip6, sizeof(*ip6),
--- ip6_input.c.orig	Sun Feb 17 11:17:51 2002
+++ ip6_input.c	Sun Feb 17 13:48:34 2002
@@ -313,7 +313,7 @@
 		pfh = NULL;
 	else
 		pfh = pfil_hook_get(PFIL_IN,
-		    &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
+		    &inet6sw[ip6_protox[IPPROTO_IPV6]].pr_pfh);
 #else
 	pfh = pfil_hook_get(PFIL_IN, &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
 #endif
--- ip6_output.c.orig	Sun Feb 17 11:56:41 2002
+++ ip6_output.c	Sun Feb 17 13:53:52 2002
@@ -92,6 +92,7 @@
 #include <netinet6/ip6_var.h>
 #include <netinet6/in6_pcb.h>
 #include <netinet6/nd6.h>
+#include <netinet6/ip6protosw.h>

 #ifdef IPSEC
 #include <netinet6/ipsec.h>
@@ -841,7 +842,8 @@
 	 * Run through list of hooks for output packets.
 	 */
 	m1 = m;
-	pfh = pfil_hook_get(PFIL_OUT, &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
+	pfh = pfil_hook_get(PFIL_OUT,
+		&inet6sw[ip6_protox[IPPROTO_IPV6]].pr_pfh);
 	for (; pfh; pfh = pfh->pfil_link.tqe_next)
 		if (pfh->pfil_func) {
 		    	rv = pfh->pfil_func(ip6, sizeof(*ip6), ifp, 1, &m1);

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/~kuparine/                    http://www.netbsd.org/