From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B1F07E110 for ; Wed, 14 Jan 2026 14:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768400781; cv=none; b=eMZM2khSHXRw0+HGdYapI7ZdhvkpraMyFrUPodO5UpCQbDRjEqjE2RiZ6GtVd0SRZe6+Ry8HNxEEwzulvWEg7IcDQ6LfNAkSUYUWGfi56EFDl6gfWib4Vf8nE6DVG+TF6qFf/07nKlkwqGiaj3RWA953vrDIF2Yg1/Xx7LmbWV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768400781; c=relaxed/simple; bh=uIbPTEV7JhXhP5dbUwn8E0y0Xf4LjwBsalQgqidmI+Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z7eiR964eICKrmlJ/51xHeNDe3YYpdduna/KP+2e1ksR5uLuUOmw0GO6r+BJFHRjS1K3MAMvxasRBwbJHuWiBCAofVnMoce8k/ydX2x/YyOXiuPTZSJjn7vuxn9EfhauSXJ396/yDY9VVluudeZSpJNkiDcGVHIW9LFIi/dmvxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=YPY82k93; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="YPY82k93" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=Content-Type:MIME-Version:Message-ID:Subject:From:Date:From :Subject; bh=p+RQf0OHitIWIMYaYsDzZ/Gm20tfUsD1YYHE6KB+Kx4=; b=YPY82k937xcHresf urt//BsRGEQp2UbRw+kZJLS+2i2k7aqF9FvLTTTEHsyR4E1EGqOWg6FC5j3Kw1P0i0LwhMP6XkTgn sfVq1bflSNbYEyDzO6DLnEyMWh6aMS5uwWJ4RVPxW4YUP8cm+H9+gEseTAGOTVhCZ1bSH0rWRAXiB D4TVWA13ZYxArlaejFnPO3Dr91k10tGKktetzRFvhHVp6zMYEt6Q+ZvPwSPEVZ5BmboMqowGMgaKC f98ZPdIcgvYWwOnb2pEKtPA4WfCkVtGpzA3Ecjh7cKxByheY/ODjFAlkxixBQRTqaXEQG4lPXDeAA rGlHqSk54LBDaAzc0A==; Received: from dg by mx.treblig.org with local (Exim 4.98.2) (envelope-from ) id 1vg1p5-0000000EhMw-2BSU; Wed, 14 Jan 2026 14:26:11 +0000 Date: Wed, 14 Jan 2026 14:26:11 +0000 From: "Dr. David Alan Gilbert" To: Alejandro Colomar Cc: linux-man@vger.kernel.org Subject: Re: [PATCH] man/man5/gai.conf: Labels have a label not a precedence Message-ID: References: <20260104220438.265626-1-dg@treblig.org> Precedence: bulk X-Mailing-List: linux-man@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/6.12.48+deb13-amd64 (x86_64) X-Uptime: 14:25:51 up 79 days, 14:02, 3 users, load average: 0.04, 0.06, 0.01 User-Agent: Mutt/2.2.13 (2024-03-09) * Dr. David Alan Gilbert (dave@treblig.org) wrote: > * Alejandro Colomar (alx@kernel.org) wrote: > > Hi David, > > Hi Alex, Hi Alex, > > On Sun, Jan 04, 2026 at 10:04:38PM +0000, dg@treblig.org wrote: > > > From: "Dr. David Alan Gilbert" > > > > > > The numeric value on a label entry is a label which is separate > > > from the precedences. Labels are compared with other labels, not > > > precedences. > > > > Is there any source to verify this? > > The two I checked are: > https://datatracker.ietf.org/doc/html/rfc3484#section-2.1 > is the RFC itself, and it talks about the Precedence and labels > as separate values. Note how it's talking in terms of: > > If Precedence(A) > Precedence(B), we say that... > and > The algorithms prefer to use a source address S with a destination > address D if Label(S) = Label(D). > > So it's label compared to label and precedence compared to precedence. > > The corresponding bits of glibc are: > https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/getaddrinfo.c;h=c0f496f96c752220e68bf0257d9ff1ffc624ebe6;hb=HEAD#l1525 > > where the label values are compared in Rule 5, and the precedence values > are compared in Rule 6. Does that explanation I sent make sense? Dave > Dave > > > > > Cheers, > > Alex > > > > > > > > Rename the field. > > > > > > Signed-off-by: Dr. David Alan Gilbert > > > --- > > > man/man5/gai.conf.5 | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/man/man5/gai.conf.5 b/man/man5/gai.conf.5 > > > index 4aff0b0b9..ef330995d 100644 > > > --- a/man/man5/gai.conf.5 > > > +++ b/man/man5/gai.conf.5 > > > @@ -26,7 +26,7 @@ .SH DESCRIPTION > > > .P > > > The keywords currently recognized are: > > > .TP > > > -.BI label\~ netmask\~precedence > > > +.BI label\~ netmask\~label > > > The value is added to the label table used in the RFC\ 3484 sorting. > > > If any > > > .B label > > > @@ -35,7 +35,7 @@ .SH DESCRIPTION > > > All the label definitions > > > of the default table which are to be maintained have to be duplicated. > > > Following the keyword, > > > -the line has to contain a network mask and a precedence value. > > > +the line has to contain a network mask and a label value. > > > .TP > > > .BI precedence\~ netmask\~precedence > > > This keyword is similar to > > > -- > > > 2.52.0 > > > > > > > -- > > > > > -- > -----Open up your eyes, open up your mind, open up your code ------- > / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ > \ dave @ treblig.org | | In Hex / > \ _________________________|_____ http://www.treblig.org |_______/ -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/