From: Greg Banks <gnb@sgi.com>
To: Tom Tucker <tom@opengridcomputing.com>
Cc: neilb@suse.de, bfields@fieldses.org, nfs@lists.sourceforge.net
Subject: Re: [RFC, PATCH] svc: Modify svc_create_xprt to return local port
Date: Wed, 10 Oct 2007 12:35:40 +1000 [thread overview]
Message-ID: <20071010023540.GB20690@sgi.com> (raw)
In-Reply-To: <20071009225253.25816.36183.stgit@dell3.ogc.int>
On Tue, Oct 09, 2007 at 05:52:53PM -0500, Tom Tucker wrote:
>
> Please take this version of the patch. The previous version has a
> whitespace issue. Sorry for the inconvenience.
>
> This patch fixes a regression introduced by the svc transport
> switch as follows:
>
> - Listening endpoints need to have their local address set properly.
>
> - svc_create_xprt needs to return the local port number since the
> the nfs4 callback service uses the return value to determine the
> local port elected by the transport when binding to zero.
>
> [...]
> --- a/net/sunrpc/svcsock.c
> +++ b/net/sunrpc/svcsock.c
> @@ -1278,6 +1278,8 @@ svc_create_socket(struct svc_serv *serv,
> int error;
> int type;
> char buf[RPC_MAX_ADDRBUFLEN];
> + struct sockaddr newsin;
> + int newlen;
Struct sockaddr isn't big enough for this to work with ipv6,
use struct sockaddr_storage. Or do the kernel_getsockname()
driectly into xprt->xpt_local.
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
Apparently, I'm Bedevere. Which MPHG character are you?
I don't speak for SGI.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-10-10 2:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 22:52 [RFC, PATCH] svc: Modify svc_create_xprt to return local port Tom Tucker
2007-10-10 2:35 ` Greg Banks [this message]
2007-10-10 2:28 ` Tom Tucker
-- strict thread matches above, loose matches on Subject: below --
2007-10-09 22:47 Tom Tucker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071010023540.GB20690@sgi.com \
--to=gnb@sgi.com \
--cc=bfields@fieldses.org \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
--cc=tom@opengridcomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox