This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: IP aliases and sunrpc over UDP


On Wed, Feb 16, 2000 at 06:06:33PM -0800, H . J . Lu wrote:
> There is a problem with IP aliases in sunrpc server over UDP. If
> there are more than one IP addresses on an interface, when the sunrpc
> server sends the reply back to client, the kernel will pick an IP
> address on that interface for the reply packet, which may not be the
> IP address the client is using. In some cases like NAT, it doesn't work
> very well. If we add a "struct msghdr" field in SVCXPRT, with
> IP_PKTINFO, recvmsg and sendmsg, we may be able to get it right. Any
> comments? I can create a patch for glibc 2.2 if it is a good idea.

After taking a closer look, a new entry to SVCXPRT:

	struct sockaddr_storage xp_laddr;	/* local address */

should be sufficient.

H.J.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]