git: 73b42eff2596 - main - rc.conf: Update commented examples for lo0 to use CIDR

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 25 Nov 2024 15:14:44 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=73b42eff2596a2bda45ce3ef7f505720ba0f2df0

commit 73b42eff2596a2bda45ce3ef7f505720ba0f2df0
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-11-25 15:14:33 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-11-25 15:14:33 +0000

    rc.conf: Update commented examples for lo0 to use CIDR
    
    In particular, a bare IP address no longer works.
    
    Reviewed by:    bz, imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D47716
---
 libexec/rc/rc.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index 6689a2ab85dd..62756fece201 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -263,8 +263,8 @@ icmp_log_redirect="NO"		# Set to YES to log ICMP REDIRECT packets
 network_interfaces="auto"	# List of network interfaces (or "auto").
 cloned_interfaces=""		# List of cloned network interfaces to create.
 #cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config.
-#ifconfig_lo0="inet 127.0.0.1"	# default loopback device configuration.
-#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
+#ifconfig_lo0="inet 127.0.0.1/8"	# default loopback device configuration.
+#ifconfig_lo0_alias0="inet 127.0.0.254/32" # Sample alias entry.
 #ifconfig_em0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry
 #ifconfig_em0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias
 #ifconfig_em0_name="net0"	# Change interface name from em0 to net0.