Skip to content

Commit

Permalink
sunrpc: Update RPCBIND_MAXNETIDLEN
Browse files Browse the repository at this point in the history
Commit 176e21e ("SUNRPC: Support for RPC over AF_LOCAL
transports") added a 5-character netid, but did not bump
RPCBIND_MAXNETIDLEN from 4 to 5.

Fixes: 176e21e ("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>
  • Loading branch information
Chuck Lever authored and Anna Schumaker committed May 17, 2016
1 parent 181342c commit 4b9c7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/sunrpc/msg_prot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b9c7f9

Please sign in to comment.