From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 7 23:00:32 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8358316A4B3 for ; Tue, 7 Oct 2003 23:00:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 180E643F3F for ; Tue, 7 Oct 2003 23:00:31 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9860UFY059130 for ; Tue, 7 Oct 2003 23:00:30 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9860U5Z059129; Tue, 7 Oct 2003 23:00:30 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 7 Oct 2003 23:00:30 -0700 (PDT) Resent-Message-Id: <200310080600.h9860U5Z059129@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, FUKAUMI Naoki Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F22E16A4B3 for ; 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 ; 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 ; 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]) h985v9f29551 for ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/57730: ipl.ko should be compiled with IPv6 functionality X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: FUKAUMI Naoki List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 06:00:32 -0000 >Number: 57730 >Category: kern >Synopsis: ipl.ko should be compiled with IPv6 functionality >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 07 23:00:30 PDT 2003 >Closed-Date: >Last-Modified: >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: >Unformatted: