Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 May 2006 14:36:36 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Iantcho Vassilev <ianchov@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: pf not loading the rules at boot
Message-ID:  <20060508143454.J40914@woozle.rinet.ru>
In-Reply-To: <20060508143014.Q40914@woozle.rinet.ru>
References:  <20060508084807.GA16470@lpthe.jussieu.fr> <18e02bd30605080206x3c3c908blbcb1019f146d22da@mail.gmail.com> <20060508143014.Q40914@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, 8 May 2006, Dmitry Morozovsky wrote:

DM> BTW, ipfw says 
DM> 
DM> ipfw2 (+ipv6)
DM> 
DM> even when it is build without inet6, which is a bit misleading.

The following simple patch fixes this.

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
[-- Attachment #2 --]
Index: sys/netinet/ip_fw2.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/ip_fw2.c,v
retrieving revision 1.106.2.12
diff -u -r1.106.2.12 ip_fw2.c
--- sys/netinet/ip_fw2.c	9 Mar 2006 13:42:44 -0000	1.106.2.12
+++ sys/netinet/ip_fw2.c	8 May 2006 10:36:16 -0000
@@ -4221,7 +4221,12 @@
 	}
 
 	ip_fw_default_rule = layer3_chain.rules;
-	printf("ipfw2 (+ipv6) initialized, divert %s, "
+	printf(
+#ifdef	NO_INET6
+		"ipfw2 initialized, divert %s, "
+#else
+		"ipfw2 (+ipv6) initialized, divert %s, "
+#endif
 		"rule-based forwarding "
 #ifdef IPFIREWALL_FORWARD
 		"enabled, "

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