Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2023 12:04:21 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: dis/advantages of compiling in-kernel over kldload
Message-ID:  <CANCZdfqYSgGMT=JE8h16n0zVYbrWYYgggJwsJK4Z2QFoE8Es4g@mail.gmail.com>
In-Reply-To: <ZK7pqlDKY4JBkvek@int21h>
References:  <ZK7mnohS12eEYoV2@int21h> <CANCZdfo1z9xq2%2BZNoYmudxkrR9=c_9Eg9NOECKU8kwgoGi7pbA@mail.gmail.com> <ZK7pqlDKY4JBkvek@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000002f4cb806004e0c8d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 12, 2023 at 11:58=E2=80=AFAM void <void@f-m.fm> wrote:

> Hi Warren,
>
> On Wed, Jul 12, 2023 at 11:53:32AM -0600, Warner Losh wrote:
>
> >Yes. pf_enable=3DYES will load it as a side effect when it configures
> >pf, but isn't primarily to load it as a module. But if it's in the kerne=
l,
> >you still need to configure pf on boot (or some time later).
>
> But if pf is already configured in /etc/pf.conf, is pf_enable=3DYES still
> required in /etc/rc.conf ?
>

Yes. /etc/rc.d/pf doesn't check /etc/pf.conf. Its pf_start() routine will
only
run if pf_enable=3DYES in /etc/rc.conf (or related file, which pf.conf is n=
ot)

Warner

--0000000000002f4cb806004e0c8d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jul 12, 2023 at 11:58=E2=80=
=AFAM void &lt;<a href=3D"mailto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Warren,<br>
<br>
On Wed, Jul 12, 2023 at 11:53:32AM -0600, Warner Losh wrote:<br>
<br>
&gt;Yes. pf_enable=3DYES will load it as a side effect when it configures<b=
r>
&gt;pf, but isn&#39;t primarily to load it as a module. But if it&#39;s in =
the kernel,<br>
&gt;you still need to configure pf on boot (or some time later).<br>
<br>
But if pf is already configured in /etc/pf.conf, is pf_enable=3DYES still<b=
r>
required in /etc/rc.conf ?<br></blockquote><div><br></div><div>Yes. /etc/rc=
.d/pf doesn&#39;t check /etc/pf.conf. Its pf_start() routine will only</div=
><div>run if pf_enable=3DYES in /etc/rc.conf (or related file, which pf.con=
f is not)</div><div><br></div><div>Warner=C2=A0</div></div></div>

--0000000000002f4cb806004e0c8d--



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