OSDN Git Service

sunrpc: Update RPCBIND_MAXNETIDLEN
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 May 2016 18:40:31 +0000 (14:40 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:47:56 +0000 (15:47 -0400)
Commit 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL
transports") added a 5-character netid, but did not bump
RPCBIND_MAXNETIDLEN from 4 to 5.

Fixes: 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL ...")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/msg_prot.h

index 8073713..59cbf16 100644 (file)
@@ -158,9 +158,9 @@ typedef __be32      rpc_fraghdr;
 
 /*
  * Note that RFC 1833 does not put any size restrictions on the
- * netid string, but all currently defined netid's fit in 4 bytes.
+ * netid string, but all currently defined netid's fit in 5 bytes.
  */
-#define RPCBIND_MAXNETIDLEN    (4u)
+#define RPCBIND_MAXNETIDLEN    (5u)
 
 /*
  * Universal addresses are introduced in RFC 1833 and further spelled