Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 1997 06:22:48 +1000 (EST)
From:      proff@suburbia.net
To:        mishania@demos.su
Cc:        hackers@freebsd.org
Subject:   Re: ipfilter/2.2.1 / devfs (general)
Message-ID:  <19970409202248.2334.qmail@suburbia.net>
In-Reply-To: <199704091845.WAA00631@snutteplutt.demos.su> from "Mikhail A. Sokolov" at "Apr 9, 97 10:45:35 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970409202248.2334.qmail>