From nobody Mon Nov 14 08:22:21 2022 X-Original-To: dev-commits-src-all@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 4N9j3K2VY8z4hR1N; Mon, 14 Nov 2022 08:22:21 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N9j3K20HFz4ZWS; Mon, 14 Nov 2022 08:22:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668414141; 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; bh=CfaAL6ywh77IBr3eKc257j0Tt498g6qz4BeGXnpjLHU=; b=J5tACLZzgqSqdr97JTYu6zGbJs+4KBcwHi06Dn/XLnZofflThfZ4si+l4uImlVJTddw9BX 3WeRF/iV2RAdgti3nt0qproDTegKZXJ8LpVZav8KG/paZmAJDeH4B6jnM3oi1ou6k5GI7d vG1Fe8ozFscNRCFQ5ZNy8MzhALqKbGqeeSuumq3QXtmMD7a9umlqOQCmBDrMZc2AbkfVbj WSiTNZRDayG6+YCWlkbfF0juD1JjQevlX/MPEGFXllnqyhU29hiSRk1bpw6JnN3byZ6b1Y COf4wkoZI4OUCjOr9LpFSsy4ZP2gacAW7mjigAPxZjVdgVyTw/xGPwDt8cl2IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668414141; 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; bh=CfaAL6ywh77IBr3eKc257j0Tt498g6qz4BeGXnpjLHU=; b=OMxfMa5m6R7MLyN0+NKI1kebuyQJM+VSU6w/uiHHJlpl/wm1jw6xKGX7T1kFYxhEyVq7e5 Rk7LbV9W1E3FQst/JkuK90FcmbZFxALPVRlMn2Nk911jArE9OqfMlHIOJBck3ys61i//SX jGL/8RCLZEzBG9QjWpNBfhEZhFedj1CreNkEIzmLbnNIYM7n5+WKe9DbJfTV8oA5MFNa0x XOzwqLx6zGDr/EmFz3skbUowg9WMpLio+t3SIxYdjqJaLnfizithvlkUtrzdPv9rmiSfzC pwN6fThKW4nUz6/xXy1tsWH3oWNs5H2Pj9hnC2tu4fe/idQgl186dKY9Lnu8ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668414141; a=rsa-sha256; cv=none; b=K12kvGqcGN87IOJ3BHzP2RH3QvVRYt51n/41OPqW5unAgWgB5gc1xTIcwsW87KRUQNvg9I 4bAKKp9VvsO4juHsbTPDmBhlPDVfJlOJBgM36l/jqfHb/6KqXXmn4JGocjKD0eiufCThxh yYFU3wONUuA/9JQFdn81KRUYcx+HgxPkt9Xy4hSar0NRWFeIKsGMnv6HZ6Q+6Vh6NZToNO zaTXT6knxF8icOZoGGJHkPKAYryryHOaYU/xMktKoM8pk7pUne79dRW8sbU7mdu1fqH0Ez 6qN/mw5E+x8s2SwrP4ffJyNgnU/mOeNRFRiSE58fE3kNnQsv77pygL0wzEt62w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4N9j3K16S8zZXG; Mon, 14 Nov 2022 08:22:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AE8MLde083718; Mon, 14 Nov 2022 08:22:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AE8MLk9083717; Mon, 14 Nov 2022 08:22:21 GMT (envelope-from git) Date: Mon, 14 Nov 2022 08:22:21 GMT Message-Id: <202211140822.2AE8MLk9083717@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: 457c0c0b075c - stable/12 - man pages: deprecate Internet Class A/B/C List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 457c0c0b075cc1f65b54ddd8eecdf003ebb1c6fd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=457c0c0b075cc1f65b54ddd8eecdf003ebb1c6fd commit 457c0c0b075cc1f65b54ddd8eecdf003ebb1c6fd Author: Mike Karels AuthorDate: 2021-10-27 03:25:09 +0000 Commit: Gordon Bergling CommitDate: 2022-11-14 08:17:16 +0000 man pages: deprecate Internet Class A/B/C Mark functions inet_netof(), inet_lnaof(), and inet_makeaddr() as deprecated, as they assume Class A/B/C. inet_makeaddr() mostly works when networks are a multiple of 8 bits, but warn for anything other than historical classes. Reduce other mentions of network classes. Reviewed by: bcr, #manpages Differential Revision: https://reviews.freebsd.org/D32711 (cherry picked from commit 12bd931d8c64ad2d5e78c7ab917efbff326152ca) --- lib/libc/net/inet.3 | 24 ++++++++++-------------- lib/libc/net/inet_net.3 | 12 +++--------- share/man/man5/resolver.5 | 11 ++++++----- 3 files changed, 19 insertions(+), 28 deletions(-) diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index a36cb313f7d3..cb44394d0a0c 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -28,7 +28,7 @@ .\" From: @(#)inet.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 14, 2007 +.Dd November 9, 2021 .Dt INET 3 .Os .Sh NAME @@ -157,18 +157,20 @@ The routine .Fn inet_ntoa_r is the reentrant version of .Fn inet_ntoa . -The routine +The deprecated routine .Fn inet_makeaddr takes an Internet network number and a local -network address and constructs an Internet address +host address on that network, and constructs an Internet address from it. -The routines +It should only be assumed to work for historical class A/B/C networks. +The deprecated routines .Fn inet_netof and .Fn inet_lnaof break apart Internet host addresses, returning -the network number and local network address part, -respectively. +the network number and local host address part, +respectively, +assuming the historical class A/B/C network masks. .Pp All Internet addresses are returned in network order (bytes ordered from left to right). @@ -203,17 +205,11 @@ ordered from right to left. .Pp When a three part address is specified, the last part is interpreted as a 16-bit quantity and placed -in the right-most two bytes of the network address. -This makes the three part address format convenient -for specifying Class B network addresses as -.Dq Li 128.net.host . +in the least significant two bytes of the network address. .Pp When a two part address is supplied, the last part is interpreted as a 24-bit quantity and placed in -the right most three bytes of the network address. -This makes the two part address format convenient -for specifying Class A network addresses as -.Dq Li net.host . +the least significant three bytes of the network address. .Pp When only one part is given, the value is stored directly in the network address without any byte diff --git a/lib/libc/net/inet_net.3 b/lib/libc/net/inet_net.3 index f0721729ff05..4028984bd09b 100644 --- a/lib/libc/net/inet_net.3 +++ b/lib/libc/net/inet_net.3 @@ -32,7 +32,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 18, 2016 +.Dd November 9, 2021 .Dt INET_NET 3 .Os .Sh NAME @@ -120,17 +120,11 @@ That is, little-endian bytes are ordered from right to left. .Pp When a three part number is specified, the last part is interpreted as a 16-bit quantity and placed -in the rightmost two bytes of the Internet network number. -This makes the three part number format convenient -for specifying Class B network numbers as -.Dq Li 128.net.host . +in the least significant two bytes of the Internet network number. .Pp When a two part number is supplied, the last part is interpreted as a 24-bit quantity and placed in -the rightmost three bytes of the Internet network number. -This makes the two part number format convenient -for specifying Class A network numbers as -.Dq Li net.host . +the least significant three bytes of the Internet network number. .Pp When only one part is given, the value is stored directly in the Internet network number without any byte diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5 index d5c02599bafb..468c635839c6 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -28,7 +28,7 @@ .\" @(#)resolver.5 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd May 25, 2021 +.Dd November 9, 2021 .Dt RESOLVER 5 .Os .Sh NAME @@ -104,15 +104,16 @@ with a total of 256 characters. .It Sy sortlist Sortlist allows addresses returned by gethostbyname to be sorted. A sortlist is specified by IP address netmask pairs. -The netmask is -optional and defaults to the natural netmask of the net. +If the netmask is not specified, +it defaults to the historical Class A/B/C netmask of the net; +this usage is deprecated. The IP address -and optional network pairs are separated by slashes. +and network pairs are separated by slashes. Up to 10 pairs may be specified. E.g., .Pp -.Dl "sortlist 130.155.160.0/255.255.240.0 130.155.0.0" +.Dl "sortlist 10.9.1.0/255.255.240.0 10.9.0.0/255.255.0.0" .It Sy options Options allows certain internal resolver variables to be modified. The syntax is