From owner-freebsd-current Sat Aug 29 17:32:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA20081 for freebsd-current-outgoing; Sat, 29 Aug 1998 17:32:49 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from darkstar.vmx (uvo-86.univie.ac.at [131.130.230.86]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA20076 for ; Sat, 29 Aug 1998 17:32:44 -0700 (PDT) (envelope-from root@darkstar.psa.at) Received: (qmail 5520 invoked by uid 0); 30 Aug 1998 00:24:32 -0000 Message-ID: <19980830022432.A5501@compufit.at> Date: Sun, 30 Aug 1998 02:24:32 +0200 From: Alexander Sanda To: freebsd-current@FreeBSD.ORG Subject: IPFILTER LKM ? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i X-Operating-System: FreeBSD 3.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wonder, if everyone has managed to build IPFILTER as a lkm without doing ugly things :) First, I tried it "the normal way" but without success. Activating IPFILTER_LKM doesn't result in a loadable module, so I disabled the "options IPFILTER" which resulted in no ipfilter at all. The lkm build process in src/lkm doesn't seem to know anything about if_ipl.o and the build process in src/contrib/ipfilter doesn't work on -current (at least it doesn't for me). However, after looking a bit into the code, I managed to build the if_ipl.o module from the sources in sys/netinet. I wrote my own makefile (derived from the makefile in src/contrib/ipfilter) and corrected 2 lines in mlf_ipl.c (MOD_MISC() instead of MOD_DECL, and updated DISPATCH() ). I rebuilt the kernel with IPFILTER disabled and IPFILTER_LKM enabled, compiled the ipfilter module, and everthing seems to work. Am I doing something wrong here ? I'am not a very experienced kernel guy, so I would like to consult the gurus here. -- # /AS/ http://privat.schlund.de/entropy/ # # # # XX has detected, that your mouse cursor has changed position. Please # # restart XX, so it can be updated. -- From The Gimp manual # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message