From fukaumi@soum.co.jp  Tue Oct  7 22:57:15 2003
Return-Path: <fukaumi@soum.co.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7F22E16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Oct 2003 22:57:15 -0700 (PDT)
Received: from gate.soum.co.jp (gate.soum.co.jp [202.221.40.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BD26A43FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Oct 2003 22:57:13 -0700 (PDT)
	(envelope-from fukaumi@soum.co.jp)
Received: from force.soum.co.jp (force.soum.co.jp [IPv6:2001:240:c4:1:a00:20ff:fef0:4c9c])
	by gate.soum.co.jp (8.12.9/8.12.9) with ESMTP id h985vAS3021107
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Oct 2003 14:57:10 +0900 (JST)
	(envelope-from fukaumi@soum.co.jp)
Received: from fun.soum.co.jp ([2001:240:c4:1:2e0:18ff:fe00:d8ee])
	by force.soum.co.jp (8.11.7/3.7W-2003052906) with ESMTP id h985v9f29551
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Oct 2003 14:57:09 +0900 (JST)
Message-Id: <1x1xtoe0ga.wl@fun.soum.co.jp>
Date: Wed, 08 Oct 2003 14:57:09 +0900
From: FUKAUMI Naoki <fukaumi@soum.co.jp>
Reply-To: FUKAUMI Naoki <fukaumi@soum.co.jp>
To: FreeBSD-gnats-submit@freebsd.org
Subject: ipl.ko should be compiled with IPv6 functionality

>Number:         57730
>Category:       kern
>Synopsis:       ipl.ko should be compiled with IPv6 functionality
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    darrenr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 07 23:00:30 PDT 2003
>Closed-Date:    Mon Jul 05 16:23:38 GMT 2004
>Last-Modified:  Tue Jan  4 16:20:18 GMT 2005
>Originator:     FUKAUMI Naoki
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
SOUM Corporation
>Environment:
>Description:
	ipl.ko doesn't have IPv6 functionality because USE_INET6 is not
	defined in src/sys/modules/ipfilter/Makefile.

	GENERIC kernel has INET6 options, and GENERIC kernel does not
	include ipfilter module statically.

	/etc/rc.network load ipl.ko if ipfilter_enable=YES, and exec
	'ipf -6 -f ipf6.rules' if ipv6_ipfilter_rules available.

	It causes error.

>How-To-Repeat:
	# kldload ipl
	# ipf -6 -f /etc/ipf6.rules
	1:ioctl(add/insert rule): No such process
	(snip)

	This is 4.9-PRERELEASE machine. But I think 5.1-CURRENT has
	same problem.

>Fix:
	Patch for 4.9-PRERELEASE:

Index: Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/ipfilter/Makefile,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 Makefile
--- Makefile	7 Jun 2001 05:11:44 -0000	1.2.2.2
+++ Makefile	8 Oct 2003 05:27:43 -0000
@@ -5,9 +5,11 @@
 SRCS=	mlfk_ipl.c ip_nat.c ip_frag.c ip_state.c ip_proxy.c ip_auth.c \
 	ip_log.c ip_fil.c fil.c
 NOMAN=
+CFLAGS+= -DUSE_INET6
 CFLAGS+= -DIPFILTER_LKM -DIPFILTER_LOG
 CFLAGS+=  -I${.CURDIR}/../../contrib/ipfilter
 #
+# If you don't want IPv6 functionality remove -DUSE_INET6
 # If you don't want log functionality remove -DIPFILTER_LOG
 #
 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Oct 17 17:41:08 PDT 2003 
Responsible-Changed-Why:  
Assign to ipfilter author 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57730 
State-Changed-From-To: open->feedback 
State-Changed-By: darrenr 
State-Changed-When: Tue Apr 20 07:07:12 PDT 2004 
State-Changed-Why:  
applied to -current but should be MFC'd when 4.10 freeze is over 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57730 
State-Changed-From-To: feedback->closed 
State-Changed-By: darrenr 
State-Changed-When: Mon Jul 5 16:16:00 GMT 2004 
State-Changed-Why:  
patch applied to RELENG_4 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57730 

From: Christian Hahn <hahn@atriumberlin.de>
To: freebsd-gnats-submit@FreeBSD.org, fukaumi@soum.co.jp
Cc:  
Subject: Re: kern/57730: ipl.ko should be compiled with IPv6 functionality
Date: Tue, 04 Jan 2005 17:13:20 +0100

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Hello,
 
 this bug still exists on 4.10 Release and can be solved as described
 in the bug report. Will this bug vanish in 4.11?
 
 My system: FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004
 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 
 cheers,
 Christian
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
 iD8DBQFB2sCU6kMW7HW8620RAiRZAKCaayGbuZcNkPs6+2BSkpjjlSXZrwCgpNMm
 E80RguwuZ2CpSsnJl5BrffU=
 =bNY+
 -----END PGP SIGNATURE-----
>Unformatted:
