From owner-freebsd-hackers Wed Apr 9 13:23:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA14785 for hackers-outgoing; Wed, 9 Apr 1997 13:23:24 -0700 (PDT) Received: from pdx1.world.net (pdx1.world.net [192.243.32.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA14776 for ; Wed, 9 Apr 1997 13:23:17 -0700 (PDT) From: proff@suburbia.net Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with SMTP id NAA14406 for ; Wed, 9 Apr 1997 13:25:43 -0700 (PDT) Received: (qmail 2336 invoked by uid 110); 9 Apr 1997 20:22:48 -0000 Message-ID: <19970409202248.2334.qmail@suburbia.net> Subject: Re: ipfilter/2.2.1 / devfs (general) In-Reply-To: <199704091845.WAA00631@snutteplutt.demos.su> from "Mikhail A. Sokolov" at "Apr 9, 97 10:45:35 pm" To: mishania@demos.su Date: Thu, 10 Apr 1997 06:22:48 +1000 (EST) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hello, > > The question is, - I tried to plug this version of Julian's patches (?) to use > those with 3.2a4 of ipfilters and I still see: > # ipf -f /tmp/111 > open device: Device not configured > ioctl(SIOCADDFR): Bad file descriptor > # > where /tmp/111 is just simpliest rule by mkfilters, as it is in example. Did you rebuild your kernel ? what does dmesg|grep -i ipf say ? > and: > # ls -la /dev/ip* > crw------- 1 root wheel 79, 0 9 Сав 22:36 /dev/ipl > crw------- 1 root wheel 79, 1 9 Сав 22:36 /dev/ipnat > crw------- 1 root wheel 79, 2 9 Сав 22:36 /dev/ipstate > # > > I also tried loadable version, and I got: > # modload /lkm/if_ipl_mod.o > /lkm/if_ipl_mod.o: Undefined symbol `_devfs_add_devswf' referenced from text segment > /lkm/if_ipl_mod.o: Undefined symbol `_devfs_remove_dev' referenced from text segment > modload: /usr/bin/ld: return code 1 > > This is "stock" 2.2.1-R, and I guess devfs isn't what I am to use with it ? > > Any clues are appreciated in advance, thank you. > > -mishania 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. Cheers, Julian.