From nobody Sat Oct 18 14:47: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 4cpl0L44pSz6DFBr for ; Sat, 18 Oct 2025 14:47: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 4cpl0L3NzSz3R36 for ; Sat, 18 Oct 2025 14:47: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=1760798850; 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=aGzAPKnqfBnFBMLZzGW1fwy2MfEcj/oSVbPw1rSljUQ=; b=Yr+0I7lhC9S3E3SmLdex5LhgfgntgzSU5GgdvsQNbQKSwlA8ZMzVw2xzdqh/7FA27JxMEr xLVjDbOjaEyo8HUbVm64La/prgrzkZfFM16YL9OKv8CPoyi6pPr0W21BZfa1vXVQv0llha 4nYLvjQz+I8a/E9EFxgzWWK/9yMR3XZsNJvJFd1B61yWzSkrT1/nK5FiB6IeEJ4YWVDOD6 7LcCF3/1FxdGFd8OuZq/YjDLPZxaAZDMV15tnbQwCNedbm1zpP+b9XKOxDS0bm/IKC8YuG YIeFQ8fE27x21IPE4HTpmsg+PZqv5bDdBAbipbj6MkYRP9wGdkhAV2Mau2K31A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760798850; 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=aGzAPKnqfBnFBMLZzGW1fwy2MfEcj/oSVbPw1rSljUQ=; b=jsP30EiPyGaDsduTR/U9r80th8sf81HIKb+M9QsGFvh6JahkbVYNC2+xKrs8+87DSyDOgC Z7TXTaoA3PRoE10YVawFbA7pEgdNesOx/PiJFE+aEK8iWT2aXvw3tpSqmzmvfoGUpCZEcL GMLlWwWCAKmd9vfKzSxJVK+hVg5cK0DikX4zvMfnaPCAezGHigUNViGYnQrTnI+1Rz0Dy9 iBw7VijRGgWH71oVOavYkG0S5bfNlM+Jy+8ZsxdnUynxYXeSFNOCgX+AvNPunCy3gLxDUz rnr9nHQC7BGo59qGi9wXu0RtOJ7gyJZTznXbBdgqUXn3ckaLauLLTitnPfc7uw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760798850; a=rsa-sha256; cv=none; b=iu5jN2BjgMXjgWoipPGB8faAiMfrzXPrEcwYtzFyBn+A9xdJ4EWK9Ybd1pX38AUZPJbYli Yi7YnrTeBo+lKjW4FhETI/7pJ7/IxMgXsRPqwtMt/RKQrCyO8SW/RjDDadzzJXj3qADmVs OgmmiWnOXLO3yQhH7NaLDUo8TYUfu4u9wFklqJ/MIZ/uxRZbGCP6bjgzpStVnc/lVLFgWS 3Tr+LMlgqpjl1ww+1RaQ2QddQQmBujPuWt6UtmbNwoC/TEHLf4/Syp84IquvUKIVoBwqi3 nc/CojGt5lNOBfcrGcfSm6ESDfU7xl4nm2YgAlQ1PK/crewEfLh2jRUQ57SbNQ== 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 4cpl0L2v2TzlnB for ; Sat, 18 Oct 2025 14:47: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 59IElUAi077386 for ; Sat, 18 Oct 2025 14:47:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59IElUik077385 for net@FreeBSD.org; Sat, 18 Oct 2025 14:47: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: Sat, 18 Oct 2025 14:47: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: 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 #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D8f4a0d2f7b96099001dbc51e06114df1a= 0e6d291 commit 8f4a0d2f7b96099001dbc51e06114df1a0e6d291 Author: Lexi Winter AuthorDate: 2025-10-18 14:18:40 +0000 Commit: Lexi Winter CommitDate: 2025-10-18 14:45:42 +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. 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 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.=