From f16ca171eaad70563872f61042eccd2971da572f Mon Sep 17 00:00:00 2001 From: Olivier Cochard Date: Tue, 4 Feb 2025 22:22:35 +0100 Subject: [PATCH] =?UTF-8?q?man:=E2=80=AFRemove=20references=20to=20classfu?= =?UTF-8?q?l=20networks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update wording in manual pages to replace references to classful networks with CIDR notation. Approved by: glebius, dhw Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D48853 --- sbin/ipf/ipnat/ipnat.5 | 2 +- sys/netinet/libalias/libalias.3 | 8 ++++---- usr.sbin/ppp/ppp.8 | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sbin/ipf/ipnat/ipnat.5 b/sbin/ipf/ipnat/ipnat.5 index 2b391f11945..c6c8c2e54fc 100644 --- a/sbin/ipf/ipnat/ipnat.5 +++ b/sbin/ipf/ipnat/ipnat.5 @@ -332,7 +332,7 @@ a network or range of network addresses, so a rule written like this: rdr le0 0/0 -> 192.168.1.0 .fi .PP -Will not spread packets across all 256 IP addresses in that class C network. +Will not spread packets across all 256 IP addresses in that /24 subnet. If you were to try a rule like this: .nf diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3 index c19acffe03a..1b8ecc14059 100644 --- a/sys/netinet/libalias/libalias.3 +++ b/sys/netinet/libalias/libalias.3 @@ -200,11 +200,11 @@ is closed. .It Dv PKT_ALIAS_UNREGISTERED_ONLY If this mode bit is set, traffic on the local network which does not originate from unregistered address spaces will be ignored. -Standard Class A, B and C unregistered addresses are: +The standard private IP address ranges are: .Pp -10.0.0.0 -> 10.255.255.255 (Class A subnet) -172.16.0.0 -> 172.31.255.255 (Class B subnets) -192.168.0.0 -> 192.168.255.255 (Class C subnets) +10.0.0.0 -> 10.255.255.255 (/8) +172.16.0.0 -> 172.31.255.255 (/16) +192.168.0.0 -> 192.168.255.255 (/24) .Pp This option is useful in the case that the packet aliasing host has both registered and unregistered subnets on different interfaces. diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index 33bdc69f45a..c351bd50c8c 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -2202,8 +2202,8 @@ If your provider assigns your address dynamically, choose a suitably unobtrusive and unspecific IP number as your address. 10.0.0.1/0 would be appropriate. The bit after the / specifies how many bits of the -address you consider to be important, so if you wanted to insist on -something in the class C network 1.2.3.0, you could specify 1.2.3.1/24. +address you consider to be important, so if you wanted to specify an +address within the 1.2.3.0/24 subnet, you could specify 1.2.3.1/24. .It If you find that your ISP accepts the first IP number that you suggest, specify third and forth arguments of @@ -3186,7 +3186,7 @@ is an address from a LAN. Default: Disabled. Enabling this will tell .Nm -to add proxy arp entries for every IP address in all class C or +to add proxy arp entries for every IP address in all /24 subnets or smaller subnets routed via the tun interface. .Pp Proxy arp entries are only made for sticky routes that are added