From: Chuck Lever Date: Mon, 12 Feb 2007 08:53:32 +0000 (-0800) Subject: [PATCH] knfsd: SUNRPC: Add a function to format the address in an svc_rqst for printing X-Git-Tag: v2.6.21-rc1~274^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad06e4bd62351bc569cca0f25d68c58dbd298146;p=pandora-kernel.git [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 Cc: Aurelien Charbon Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed