Date: Tue, 3 Sep 2002 16:03:17 +0200 (CEST) From: Rolf Grossmann <grossman@progtech.net> To: ipfw@FreeBSD.ORG Subject: ipfw2 as a kernel module? Message-ID: <200209031403.g83E3HE03552@isis.muc.progtech.intern>
next in thread | raw e-mail | index | archive | help
Hi, I'm wondering what's planned for building ipfw2 as a kernel module. Personally, I've already put IPFW2=YES into my /etc/make.conf, so ipfw(8) would work as expected. On a test box, I naively tried to kldload ipfw, with no luck. Checking the module quickly showed that it still builds traditional ipfw. A simple patch (attached) fixed that. Now I'd like to know if that's really all it takes and if it will go into 4.7 or what your plans are. Thanks, Rolf PS: I think it would be great to have only one option for putting ipfw in the kernel and have IPFW2=YES make that ipfw2. It looks to me like the code is (almost?) ready for that anyway. Any plans? RCS file: /home/freebsd/cvs/cvs/src/sys/modules/ipfw/Makefile,v retrieving revision 1.11 diff -u -r1.11 Makefile --- Makefile 28 Aug 1999 00:47:21 -0000 1.11 +++ Makefile 3 Sep 2002 13:42:44 -0000 @@ -2,9 +2,14 @@ .PATH: ${.CURDIR}/../../netinet KMOD= ipfw -SRCS= ip_fw.c NOMAN= +.if IPFW2 +SRCS= ip_fw2.c +CFLAGS+= -DIPFW2 +.else +SRCS= ip_fw.c CFLAGS+= -DIPFIREWALL +.endif # #If you want it verbose #CFLAGS+= -DIPFIREWALL_VERBOSE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209031403.g83E3HE03552>