Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 04:06:39 -0000
From:      Max Laier <max@love2party.net>
To:        pf4freebsd@freelists.org
Subject:   [pf4freebsd] Re: ALTQ not enabled at boot
Message-ID:  <200406202256.50154.max@love2party.net>
In-Reply-To: <200406202241.55929.max@love2party.net>
References:  <200406201532.09961.mariodoria@yahoo.com> <200406202241.55929.max@love2party.net>

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

--Boundary-03=_Sof1AIfhbBH022i
Content-Type: multipart/mixed;
  boundary="Boundary-01=_Lof1AegKVQFLX6l"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_Lof1AegKVQFLX6l
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 20 June 2004 22:41, Max Laier wrote:
> I will post some diffs for discussion later.

Try the attached patch which should get ALTQ working from the start. Feedba=
ck=20
appreciated!

=2D-=20
Best regards,				| mlaier@freebsd.org
Max Laier				| ICQ #67774661
http://pf4freebsd.love2party.net/	| mlaier@EFnet

--Boundary-01=_Lof1AegKVQFLX6l
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="rc_d.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="rc_d.patch"

Index: pf
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/etc/rc.d/pf,v
retrieving revision 1.2
diff -u -r1.2 pf
=2D-- pf	2 Apr 2004 19:25:27 -0000	1.2
+++ pf	20 Jun 2004 20:53:57 -0000
@@ -4,8 +4,8 @@
 #
=20
 # PROVIDE: pf
=2D# REQUIRE: root beforenetlkm mountcritlocal netif pflog
=2D# BEFORE:  DAEMON LOGIN
+# REQUIRE: root mountcritlocal pflog
+# BEFORE:  DAEMON LOGIN netif
 # KEYWORD: FreeBSD nojail
=20
 . /etc/rc.subr
@@ -47,13 +47,13 @@
 pf_start()
 {
 	echo "Enabling pf."
=2D	if ! ${pf_program:-/sbin/pfctl} -si | grep -q "Enabled" ; then
=2D		${pf_program:-/sbin/pfctl} -e
=2D	fi
 	${pf_program:-/sbin/pfctl} -Fa > /dev/null 2>&1
 	if [ -r "${pf_rules}" ]; then
 		${pf_program:-/sbin/pfctl} \
 		    -f "${pf_rules}" ${pf_flags}
+	fi
+	if ! ${pf_program:-/sbin/pfctl} -si | grep -q "Enabled" ; then
+		${pf_program:-/sbin/pfctl} -e
 	fi
 }
=20
Index: pflog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/etc/rc.d/pflog,v
retrieving revision 1.1
diff -u -r1.1 pflog
=2D-- pflog	2 Apr 2004 19:25:27 -0000	1.1
+++ pflog	20 Jun 2004 20:54:22 -0000
@@ -4,7 +4,7 @@
 #
=20
 # PROVIDE: pflog
=2D# REQUIRE: root beforenetlkm mountcritlocal netif
+# REQUIRE: root mountcritlocal
 # BEFORE:  DAEMON LOGIN
 # KEYWORD: FreeBSD nojail
=20

--Boundary-01=_Lof1AegKVQFLX6l--

--Boundary-03=_Sof1AIfhbBH022i
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD4DBQBA1foSXyyEoT62BG0RAmPIAJdVS2wNPrtrnH2rqnBQdjQxhC5xAJ9iGHSk
WDBReIBFAP0b9DtbJz8W3g==
=erRV
-----END PGP SIGNATURE-----

--Boundary-03=_Sof1AIfhbBH022i--




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