From nobody Thu Oct 23 04:27:29 2025 X-Original-To: net@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 4csY0f5Xv9z6Dc7J for ; Thu, 23 Oct 2025 04:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4csY0f56D7z44dC for ; Thu, 23 Oct 2025 04:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761193650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jDfQFi7MM2X2SJsKAFej4vfUQsvpuJyFscKqgHvS9jo=; b=CGLV0CCQxCf2kN0A6BY0k5J+EgTjD3a4nREC/rkIQe/XThb7PS+3VExWLBZK/S/t7VDkb6 G9bF2wJ5n0fTZ7K//4Cb8C3nAc86xlv/NK0cufGQppiiuCy/NAoe/JuEcrFqvEqN91Bqiq JvMd5Z5l4Yqg2AIHEkPmK6By5sUdyVWkyxsxqPtb8SyIUuYh1J6JlG+r9HaYG06mjs5p+5 V9QPDOfvC3BYGkfzkhOq0oGj4iakE+FbrprPMfhHAqud14DOy2k+AaLWE56NKEB7Qz8zvs +eji7VN9DiFh0dC/+EAR1eZAt5cU6tCKoK2+nHkjhC8a5dFdw2N732+y14Bj9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761193650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jDfQFi7MM2X2SJsKAFej4vfUQsvpuJyFscKqgHvS9jo=; b=aUacGe0hgGDKdKDhEio2RaDYA1J8R7uSbhdZu4V5Wk6MMOX059DL22opRsQd0osG7F2rB9 ZtKt4CIeDYepL6bysTyJyRbZXrXSt9JNf2DsHtDtqtrLVqoS/ZcOy7Jd9xRP/SdgTgZhaO 3AfcmL5j3WngME+xF2FkWwWYhyZQ9Xs1Xj6x0ethjLfJENg6p/1T/JtRC4cPh66n4jY54T z1sEhcbWQ0S07X+qDsNQJZNV8P5DjEodPfBB9j3haY3teg6FJ3k350HHjAfR0yh4InQwvf wEU+KKdCyB1n1i++VSEGgHJhuaOXNGkBGciCcfUodCMVbXlg/D66TexSGhzNcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761193650; a=rsa-sha256; cv=none; b=ly8ht4VomU4JdhseZfINW7BfodKOd34ekhkB189r/cVc2loSUBDa6d5roz7P5N0mA9ZC5Y WhjNEneku737fzJ3R7+MZQ59H3P2BPV3GMAmTSDjvp1gIEtxR6hdSM9+4GZGUq7G+B+ENh rvWfzcBj4moYyUMylHVVTcxjc7bgq1H+FPsqO89NcE29X4bu2p2E7pdixpDdbho7Aea1e1 jnNKQHX2JF8Xbsn1YENDKVv7D7YrYNM0hEFdjmlMS5haEdUw1jAa4cY5wTD3EdqoaTZZrJ lrlqISbXW3yBH/Gq8sbZhtwcJyASopeo9sUgQ+069O3yyT3baUGyqHelN0NU+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4csY0f4g5Mzyxq for ; Thu, 23 Oct 2025 04:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59N4RUBs091734 for ; Thu, 23 Oct 2025 04:27:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59N4RUFf091733 for net@FreeBSD.org; Thu, 23 Oct 2025 04:27:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 289198] inet_net_pton is broken with AF_INET6 Date: Thu, 23 Oct 2025 04:27:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ivy@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? mfc-stable13? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289198 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch releng/15.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7bdd04a687d8118c8e76cbca634ac7639= 059c200 commit 7bdd04a687d8118c8e76cbca634ac7639059c200 Author: Lexi Winter AuthorDate: 2025-10-18 14:18:40 +0000 Commit: Colin Percival CommitDate: 2025-10-23 04:26:07 +0000 libc: Import OpenBSD's inet_net_{ntop,pton} Our versions of these functions (originally taken from BIND) simply don't work correctly for AF_INET6. These were removed from BIND itself quite a while ago, but OpenBSD has made several fixes in the mean time, so import their code. Add tests for both functions. Approved by: re (cperciva) PR: 289198 Reported by: Nico Sonack MFC after: 1 week Reviewed by: des Obtained from: OpenBSD (lib/libc/net) Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D52629 (cherry picked from commit 8f4a0d2f7b96099001dbc51e06114df1a0e6d291) (cherry picked from commit ff7a10d0e1d1498724c6a1e02a70926944a71590) lib/libc/inet/inet_net_ntop.c | 206 +++++------------ lib/libc/inet/inet_net_pton.c | 363 +++++++++-----------------= ---- lib/libc/tests/net/Makefile | 2 + lib/libc/tests/net/inet_net_test.cc (new) | 333 +++++++++++++++++++++++++++ 4 files changed, 492 insertions(+), 412 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=