[PATCH] knfsd: SUNRPC: Provide room in svc_rqst for larger addresses
Expand the rq_addr field to allow it to contain larger addresses. Specifically, we replace a 'sockaddr_in' with a 'sockaddr_storage', then everywhere the 'sockaddr_in' was referenced, we use instead an accessor function (svc_addr_in) which safely casts the _storage to _in. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
				
					committed by
					
						 Linus Torvalds
						Linus Torvalds
					
				
			
			
				
	
			
			
			
						parent
						
							2442222283
						
					
				
				
					commit
					27459f0940
				
			| @@ -166,7 +166,7 @@ void nfs_callback_down(void) | ||||
|  | ||||
| static int nfs_callback_authenticate(struct svc_rqst *rqstp) | ||||
| { | ||||
| 	struct sockaddr_in *addr = &rqstp->rq_addr; | ||||
| 	struct sockaddr_in *addr = svc_addr_in(rqstp); | ||||
| 	struct nfs_client *clp; | ||||
| 	char buf[RPC_MAX_ADDRBUFLEN]; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user