]> err.no Git - linux-2.6/commit
[PATCH] knfsd: SUNRPC: Add a function to format the address in an svc_rqst for printing
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Feb 2007 08:53:32 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:35 +0000 (09:48 -0800)
commitad06e4bd62351bc569cca0f25d68c58dbd298146
tree82024c01e61de32af17d3b67eac0bb93138a2954
parent1ba951053f07187f6e77be664a4b6f8bf0ba7ae4
[PATCH] knfsd: SUNRPC: Add a function to format the address in an svc_rqst for printing

There are loads of places where the RPC server assumes that the rq_addr fields
contains an IPv4 address.  Top among these are error and debugging messages
that display the server's IP address.

Let's refactor the address printing into a separate function that's smart
enough to figure out the difference between IPv4 and IPv6 addresses.

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>
fs/lockd/svc.c
fs/lockd/svc4proc.c
fs/lockd/svcproc.c
fs/nfs/callback.c
fs/nfsd/nfsfh.c
fs/nfsd/nfsproc.c
include/linux/sunrpc/svc.h
net/sunrpc/svcsock.c