Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2026 17:34:46 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>
Cc:        Dag-Erling Sm??rgrav <des@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: f0a861efbafe - main - local-unbound-setup: Support IPv6-only systems
Message-ID:  <akAJtmefmzbtVWmU@FreeBSD.org>
In-Reply-To: <4hcpjimtjtfgsaloqpcibtjwxrn4kvimboed62ad7qbm2m3f7h@7iyktwsc3pij>
References:  <6a3e9019.1f234.5366f33f@gitrepo.freebsd.org> <lw6bx5ijns2rqkr7i3lzoblejqtq7szojcjvbwsuirio4vzqde@pycq45idu6jj> <4hcpjimtjtfgsaloqpcibtjwxrn4kvimboed62ad7qbm2m3f7h@7iyktwsc3pij>

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

On Sat, Jun 27, 2026 at 05:15:55PM +0000, Shawn Webb wrote:
> On Fri, Jun 26, 2026 at 06:33:18PM +0000, Shawn Webb wrote:
> > On Fri, Jun 26, 2026 at 02:43:37PM +0000, Dag-Erling Sm?rgrav wrote:
> > > commit f0a861efbafeb81428d5e8c23dac9da73fe14007
> > > [...]
> > > +#
> > > +# Check if a kernel feature is available
> > > +#
> > > +has_feature() {
> > > +	local name=$1 v
> > > +	eval "v=\$kern_features_${name}"
> > > +	if [ -z "$v" ] ; then
> > > +		v="$(sysctl -qn "kern.features.${name}")"
> > > +		eval "kern_features_${name}=$((v))"
> > > +	fi
> > > +	return $((!v))
> > > +}
> > 
> > The function above seems like it might be useful outside the context
> > of local-unbound. I'm wondering if this would be a better fit for
> > libexec/rc/rc.subr.
> 
> Ah, I partially misread the commit. Nevermind about the question above.

Could you explain?  This still looks like a useful function to have
outside the context of local-unbound.

./danfe


home | help

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