From nobody Sun Jul 19 12:09:17 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 4h32WL6hKsz6m6x6; Sun, 19 Jul 2026 12:09:18 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h32WL5wxKz3QXt; Sun, 19 Jul 2026 12:09:18 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784462958; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rveKs85SfzoqDTl8Kx56yPMDrkvzo+QtYyRfwzG0M/4=; b=MjksNPNNAzCdHf7nqMb7poQcdnBjL6iTkYxbCARcLRUleV6DXtmHllXM32HMokuQcMO5Yg nDN4EfmnhE9hRio8MXbPwRkkg+yN6v4RDbQcQ84wJjerUW1DzWdwVjRUKJAZNcz45t6j62 BCD9bk8kjyokEjcEugwzr/TaJcGqOgs9YaWGR9A8PsJ8UTWJwYzRl0zZFvowEHSLe+kAe6 2kz3xmmvHyjUbxxBVasNkjoly/BrJ4SDfQI5oILJfdlqar0FxAZtj4V95xxWnkYjta79hf z/nWp6GuqdR0SBDr8tTp3mFqrhDZExpYPjE6fASyJaG/hd4qETYsQOWsuuGV/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784462958; a=rsa-sha256; cv=none; b=FXyP7aB0IcxPSjdemVZkutcFNhaiSGH3P/8QqD3tmeROpHhph5eHNelfxCkYANehjpenI3 KiovBI4xjgVA6eKxAombW1+vSt+bYkRHfFvR1oAaNYv5N5aV699oQdTA/RwMAlayvetrwk 2qC3cS0IrTX9TYr/Z+G06F+q6CeZXwb1vnJCiAS2OuO2uDBG+qllAfZhQfNKDYSCp8+CjV gifSo5Z+6fYhGsdriW5x++93Amwmi/gVGhKdJDEkcC8XxKWDC3JLcW9z41QREEr/m7FAEu RbXlAkSlea///fhiEvybkuigx5MjfIw+ADe0FMNQtrWbkvGTaJw60jdMqCMQmg== 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=1784462958; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rveKs85SfzoqDTl8Kx56yPMDrkvzo+QtYyRfwzG0M/4=; b=mVhwNi2X1MEaXu6o+KHgLBG4KdCgSUdQLLr4jYsRciJRFSQRYcsBHiZC5PxPfEOLiUtgSK eS4vZ186bKGbfJkoGU2v+zLWj4WPUDcT1D0vuFN8YpQBBw9z5erw/ct2zviGEDvNiCbi6F LB0ee6cBk+lJT7RBCZNtPB+DgfLjlbfCZxNBKcarGawAbssBX3Up74WJP2rI90ogUtzbKv umShxBTffRVyJBtfc82kjy3IaiobCHd9BcsCYdJc1Z6ay90FTJoemwrbvLiB1e0CedaBuV 8D40JZygUqZSUJe3NPckePK3Z0ZXBy43tdsjFQnVdhLsK9P5YLCJUHdBCnlVqA== Received: from ltc.des.dev (2a01cb0585070b00922e16fffef1acef.ipv6.abo.wanadoo.fr [IPv6:2a01:cb05:8507:b00:922e:16ff:fef1:acef]) (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 did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4h32WL3DGSzLgZ; Sun, 19 Jul 2026 12:09:18 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 2E27783DC5; Sun, 19 Jul 2026 14:09:17 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Bjoern A. Zeeb" Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: fbe0257b5613 - main - libc/resolv: Reimplement the sortlist parser In-Reply-To: <8633xv5lxw.fsf@ltc.des.dev> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Tue, 07 Jul 2026 08:54:35 +0200") References: <6a4b9e7c.3a45f.1bda28f6@gitrepo.freebsd.org> <40s77q5o-q2no-p79r-7719-67np83p1934s@mnoonqbm.arg> <8633xv5lxw.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sun, 19 Jul 2026 14:09:17 +0200 Message-ID: <86mrvnyydu.fsf@ltc.des.dev> 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=utf-8 Content-Transfer-Encoding: quoted-printable Dag-Erling Sm=C3=B8rgrav writes: > "Bjoern A. Zeeb" writes: > > one could likely make the blocks above and below even simpler if one us= ed > > inet_cidr_pton(), which will also deal with the mask, so one does not h= ave > > to parse it away and checking it onself per-AF. > inet_cidr_pton() is undocumented, so it might as well not exist. In addition to being undocumented and having a gratuitously different return value scheme than inet_pton(), inet_cidr_pton() is incapable of correctly parsing trivial cases such as: * ::/0 incorrectly parsed as ::/-1 =20=20=20=20 * 0.0.0.0/0 incorrectly parsed as either ::/128 or 0.0.0.0/32 depending on which AF you try * 2001:db8::/32 incorrectly parsed as 2001:db8::/-1 DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org