]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
inet(3): clarify syntax accepted by inet_pton
authorMike Karels <karels@FreeBSD.org>
Sat, 27 Jan 2024 15:40:07 +0000 (09:40 -0600)
committerMike Karels <karels@FreeBSD.org>
Tue, 30 Jan 2024 20:11:07 +0000 (14:11 -0600)
commit28a8192a34ca5d428f130330b52c113b475b5756
treedad539255c40da66806add1e117dbbde57457658
parente889b5a892b63e5868ffbcbf82f55cbe79dda5ac
inet(3): clarify syntax accepted by inet_pton

The section INTERNET ADDRESSES describes the acceptance of dotted
values with varying number of parts in multiple bases.  This applies
to inet_aton and inet_addr, but not to inet_pton.  Clarify this
section by listing the functions to which this applies.  Move the
description of what inet_pton accepts into this section from STANDARDS,
where it is easily missed.  Rename the section to clarify that it
applies only to IPv4.  (inet_pton also works with IPv6.)

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43537

(cherry picked from commit 9231c42127bf8e47588169ecc395f57cae0e15fb)
lib/libc/net/inet.3