freebsd-src/lib/libc/inet
Lexi Winter 8f4a0d2f7b 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
2025-10-18 15:45:42 +01:00
..
inet_addr.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_cidr_ntop.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_cidr_pton.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_lnaof.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_makeaddr.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_net_ntop.c libc: Import OpenBSD's inet_net_{ntop,pton} 2025-10-18 15:45:42 +01:00
inet_net_pton.c libc: Import OpenBSD's inet_net_{ntop,pton} 2025-10-18 15:45:42 +01:00
inet_neta.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_netof.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_network.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_ntoa.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_ntop.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
inet_pton.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nsap_addr.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Symbol.map libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00