[Bug 289198] inet_net_pton is broken with AF_INET6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Oct 2025 14:47:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289198
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=8f4a0d2f7b96099001dbc51e06114df1a0e6d291
commit 8f4a0d2f7b96099001dbc51e06114df1a0e6d291
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-10-18 14:18:40 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
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 <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
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.