From nobody Sat Jun 27 17:34:46 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gnfn31QNJz6jt9m; Sat, 27 Jun 2026 17:34:47 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gnfn30qNWz3vgG; Sat, 27 Jun 2026 17:34:47 +0000 (UTC) (envelope-from danfe@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782581687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RT+dJnSNtoDjGqCI14KpyJ1oYvMX00t6QbIVKIgb/QM=; b=EH6dwjI1sS855xXw6NJlcvghaBzYjLtVR112WcIczDCjJSn6sz+X0RoQhtD8Vyac03bx+V 80/fWQOUgI+PMo9fvymhSABasvOEPLMwg2HQpAGdWSINrqWrcxYcyNf7+PGYbZwokH/bnv 0FqHDdjtO89zJymRDr/kFgsc3PcyfQ2U6009eXJAZl1JrMBRck6CtWMejZvFUBKN78TMeg RzRfahICLTN2ZHUNX9ey5YEX05bcGi/QhF7QuBnkVPOwu92HiWYT6cLqj+DPCEmgA/XRaD uHMM3HK2/GMxl4obeyMx5hycU13cwDVVL0ieGwybHZXPhJSe3j/PX6UbMLQlmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782581687; a=rsa-sha256; cv=none; b=vOzFz8aJeDKUsbr4KjOzyLRPA+CTVHezQ/mn+ZUFe7mrOLi3zE30N7d7EesmnwkfRDmkXc wgnRQoMpgwKepdne85/NyMR8QC5I4XVJJaxuEVYWh9xyQdXhTTWXrs7XMrZ3ArzUnuXuFz ItxdvCPMiQ0QOPmdVKHTMCG2D1wjMS+YrtVWwCAUah+QL401kvSnWjxcSw6omFhQxsNsKl aTUJnCnHoDfNLcNmqlMWofnIwptpT7UIjFdggGOsHGppG8uWtBEPDnjtZEZmshk+5LN9Z7 fFwgI6J0vlA+bDa9DninPwkDGMSLL1SR9IRLS0gh1sShxGGF1DVhUu36+94mvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782581687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RT+dJnSNtoDjGqCI14KpyJ1oYvMX00t6QbIVKIgb/QM=; b=gTqa2bymUkCqBuMvZHEPXsmw5TTxPKUBluL8aR2c1Vrn2etEP162LZf2WpqceVOx/PeTp6 vsf+YZIWdUgLP4A+DpQWIveGZkT1Q2hXpxXY4LXjgamYNJW5OGC2bkgpBPDX4FpZUygFBF nCIc6apH8DoFXGk84/q/3M1IQbmI75M3YA82oj5QTTiMA1GK4eyWNJ/MGA3UFvi52Gi7Qk eKPMN+26pB+3iybKFgbgY+qKZE0hDisfDstTfL24xMt3m38kQHDiODGw69xYwEwXmrR0Ea FRIiNmJGIwxEGfEES0RHG+w+RyoHmGaraQ5PRC3sonF3x5heN5VX9rWTFOUAVA== Received: by freefall.freebsd.org (Postfix, from userid 1033) id E4ECF846C; Sat, 27 Jun 2026 17:34:46 +0000 (UTC) Date: Sat, 27 Jun 2026 17:34:46 +0000 From: Alexey Dokuchaev To: Shawn Webb Cc: Dag-Erling Sm??rgrav , 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: References: <6a3e9019.1f234.5366f33f@gitrepo.freebsd.org> <4hcpjimtjtfgsaloqpcibtjwxrn4kvimboed62ad7qbm2m3f7h@7iyktwsc3pij> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4hcpjimtjtfgsaloqpcibtjwxrn4kvimboed62ad7qbm2m3f7h@7iyktwsc3pij> 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