[Bug 289198] inet_net_pton is broken with AF_INET6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Oct 2025 04:27:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289198
--- 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=7bdd04a687d8118c8e76cbca634ac7639059c200
commit 7bdd04a687d8118c8e76cbca634ac7639059c200
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-10-18 14:18:40 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
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 <nsonack@herrhotzenplotz.de>
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(-)
--
You are receiving this mail because:
You are on the CC list for the bug.