Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106017452
D32713.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32713.diff
View Options
diff --git a/usr.sbin/mountd/exports.5 b/usr.sbin/mountd/exports.5
--- a/usr.sbin/mountd/exports.5
+++ b/usr.sbin/mountd/exports.5
@@ -28,7 +28,7 @@
.\" @(#)exports.5 8.3 (Berkeley) 3/29/95
.\" $FreeBSD$
.\"
-.Dd November 20, 2020
+.Dd November 9, 2021
.Dt EXPORTS 5
.Os
.Sh NAME
@@ -338,9 +338,10 @@
option, or by using a separate
.Fl mask
option.
-If the mask is not specified, it will default to the mask for that network
-class (A, B or C; see
+If the mask is not specified, it will default to the historical mask
+for that network class (A, B, or C; see
.Xr inet 4 ) .
+This usage is deprecated, and will elicit a warning log message.
See the
.Sx EXAMPLES
section below.
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -3418,6 +3418,9 @@
(opt_flags & OP_MASK) == 0) {
in_addr_t addr;
+ syslog(LOG_WARNING,
+ "WARNING: No mask specified for %s, "
+ "using out-of-date default", name);
addr = ((struct sockaddr_in *)sa)->sin_addr.s_addr;
if (IN_CLASSA(addr))
preflen = 8;
@@ -3425,7 +3428,7 @@
preflen = 16;
else if (IN_CLASSC(addr))
preflen = 24;
- else if (IN_CLASSD(addr))
+ else if (IN_CLASSD(addr)) /* XXX Multicast??? */
preflen = 28;
else
preflen = 32; /* XXX */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 11:44 PM (4 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15591844
Default Alt Text
D32713.diff (1 KB)
Attached To
Mode
D32713: mountd: deprecate exports to a network without mask
Attached
Detach File
Event Timeline
Log In to Comment