Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461967 > unrolled thread

[PATCH 3.16 097/305] sunrpc: Update RPCBIND_MAXNETIDLEN

Started byBen Hutchings <ben@decadent.org.uk>
First post2016-08-14 13:40 +0200
Last post2016-08-14 13:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 097/305] sunrpc: Update RPCBIND_MAXNETIDLEN Ben Hutchings <ben@decadent.org.uk> - 2016-08-14 13:40 +0200

#1461967 — [PATCH 3.16 097/305] sunrpc: Update RPCBIND_MAXNETIDLEN

FromBen Hutchings <ben@decadent.org.uk>
Date2016-08-14 13:40 +0200
Subject[PATCH 3.16 097/305] sunrpc: Update RPCBIND_MAXNETIDLEN
Message-ID<s61VM-7r3-27@gated-at.bofh.it>
3.16.37-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Chuck Lever <chuck.lever@oracle.com>

commit 4b9c7f9db9a003f5c342184dc4401c1b7f2efb39 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 include/linux/sunrpc/msg_prot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/include/linux/sunrpc/msg_prot.h
+++ b/include/linux/sunrpc/msg_prot.h
@@ -152,9 +152,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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web