Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164753878
D56502.id175838.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
810 B
Referenced Files
None
Subscribers
None
D56502.id175838.diff
View Options
diff --git a/sys/fs/nfsserver/nfs_nfsdstate.c b/sys/fs/nfsserver/nfs_nfsdstate.c
--- a/sys/fs/nfsserver/nfs_nfsdstate.c
+++ b/sys/fs/nfsserver/nfs_nfsdstate.c
@@ -4100,14 +4100,18 @@
#endif
u_char *addr;
int error = 0, cantparse = 0;
+#ifdef INET
union {
in_addr_t ival;
u_char cval[4];
} ip;
+#endif
+#if defined(INET6) || defined(INET)
union {
in_port_t sval;
u_char cval[2];
} port;
+#endif
/* 8 is the maximum length of the port# string. */
addr = malloc(INET6_ADDRSTRLEN + 8, M_TEMP, M_WAITOK);
@@ -4243,9 +4247,15 @@
j = nfsrv_getipnumber(cp);
if (j >= 0) {
if (i < 4)
+#ifdef INET
ip.cval[3 - i] = j;
+#else
+ ;
+#endif
+#if defined(INET6) || defined(INET)
else
port.cval[5 - i] = j;
+#endif
} else {
cantparse = 1;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 4, 4:47 PM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35961070
Default Alt Text
D56502.id175838.diff (810 B)
Attached To
Mode
D56502: nfs: make no-IP kernels compile
Attached
Detach File
Event Timeline
Log In to Comment