From owner-freebsd-hackers Wed Apr 9 20:09:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA08270 for hackers-outgoing; Wed, 9 Apr 1997 20:09:18 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA08261 for ; Wed, 9 Apr 1997 20:09:13 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id NAA16451; Thu, 10 Apr 1997 13:02:35 +1000 Date: Thu, 10 Apr 1997 13:02:35 +1000 From: Bruce Evans Message-Id: <199704100302.NAA16451@godzilla.zeta.org.au> To: mishania@demos.su, proff@suburbia.net Subject: Re: ipfilter/2.2.1 / devfs (general) Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >These devfs errors are because you didn't build your kernel with >devfs support enabled. You can turn off devfs support by commenting >out the -DDEVFS in /usr/src/lkm/if_ipf/Makefile. > >While I'm on this subject - by default devfs support is not included with >any modules, due to nothing defining #DEVFS during compilation. Seems >to be something that needs addressing - either devfs should become >non-optional, or stubs should be included. Ifdefed options are fundamentally incompatible with LKMs. This means that LKMs must not use nonstandard options like DEVFS, except possibly if you keep the LKMs carefully synchronised with the kernel. The IPFILTER and IPFILTER_LKM options are more of a problem than DEVFS because they affect standard objects (ip_input.o and ip_output.o). A GENERIC kernel can't possibly support an ipfilter LKM since GENERIC isn't configured with these options. The corresponding problem for ipfw is handled by using a negative option - COMPAT_IPFW defaults to 1. The corresponding problem for file systems is very old and usually not worried about. The union filesystem can't be an LKM because of a couple of `#ifdef UNION's in "machine-independent" code. The ext2fs filesystem can't be an LKM because of many `#ifdef EXT2FS's in ufs. Bruce