From nobody Thu Oct 23 00:38:38 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 4csRwZ65Rlz6Cbxg for ; Thu, 23 Oct 2025 00:38:38 +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 4csRwZ5MtXz3cmj for ; Thu, 23 Oct 2025 00:38:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761179918; 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=uhAJ3gSRCsKTbE7yrCHRg/X3LEj+klO5Kw24o/23Bco=; b=WAec19NfddHOAkNGOwNL+HgCm6prE9F9k53S8326L8Opl5Blyknl9Vlf7k0hlbVJZOcbdm vI2ge6VPXAq1SIGY3GQ7SOs+qOy2d4+mHTLIzgqHSseQfGmVl41YLfu1ivlzuyeFngkmVp ISSFKZbymMOB+NR988EpFNRCepH/S/oH/N2BqMqUuBGHe999QJTvxndn4B4rqP7UKcSPhj REBDYgFJ7qjoJhfD+T2F/yC7SNBnVMzjmQ0PGA8VXesBjpDgKcduGNaQ80Tj4159Ukxif2 hAwupnT08Rs1qiSqlTbVrV7H9MNqsRMFMj+elN1wI1+N+TMfbiKMoUoSmAcZFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761179918; 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=uhAJ3gSRCsKTbE7yrCHRg/X3LEj+klO5Kw24o/23Bco=; b=eC/LHrDjEHyHG1HcOLefIsI78svforHZLT2vnoHdClwAmsTl8t0oT7QoqkwVBnohq8qJdf CnJhgDyFTXHw0/WrlNR5didfIEcbwuHc0LKu2c1QjJvqYdr8d3VACVh9ZfQxOp5t72SSge rII2N2+CZez9BtqxCKyoPUAXN19dMjj+phq6UpZeJdl5Nf7bXYgXxJK7WE7W5URvVtXtF4 sKrLAGrZe2W7iJSEiIWpAZQ3MgecEMXKlOJcOgCmyk5FxgI3jeUC+I4xVmoNQgpm4RTxOD 8q+iTsoeNpEb3XlWXhzRPJcAHBdfxpTL2+HuBQtmELg4ZpqH0batsxTND1fBVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761179918; a=rsa-sha256; cv=none; b=MNVbVJkz+AjTLbj9rR2ZCoaGg1D4w6ijJ+hYb07lrj4/mF/pkMsehWkN2whU0Mq14G+vDF /iI4Du4qufpFZ70cjMx9dtJO3m6SLoHlNZH3I7sL9FQ+U/22qVklYHovKZ8vJud7fD05NT 8lFonDcokxokNag8K7GM1/gNRiVtSQa5jb4fNYB9BXqeq/J9tKmPDaaBpxLu0uh2iMl9XF KtdrEVFDun4XH/ch+z6uhiCqbP0qi6ECroDovDLH19IeYtSmWP4HiiJjfVeYo8FXRovzfy oVP/CmSz7fvbaaxW9blpkVXGDkawRFCk00IGuDQjvFz5zNgMvMZToccz3LtOsw== 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 4csRwZ4jFbzshh for ; Thu, 23 Oct 2025 00:38:38 +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 59N0ccWD027662 for ; Thu, 23 Oct 2025 00:38:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59N0ccPm027661 for net@FreeBSD.org; Thu, 23 Oct 2025 00:38:38 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 00:38:38 +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 #5 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dff7a10d0e1d1498724c6a1e02a7092694= 4a71590 commit ff7a10d0e1d1498724c6a1e02a70926944a71590 Author: Lexi Winter AuthorDate: 2025-10-18 14:18:40 +0000 Commit: Colin Percival CommitDate: 2025-10-23 00:36:51 +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 (cherry picked from commit 8f4a0d2f7b96099001dbc51e06114df1a0e6d291) 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.=