diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-02-12 03:53:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:36 -0500 |
commit | 73df0dbaff8d0853387e140f52b6250c486b18a1 (patch) | |
tree | f1b3a669b47744b982ba5e25af329712abd36bf5 /net/sunrpc | |
parent | 27459f0940e16c68e080f5fc7e85aa9eb3f74528 (diff) |
[PATCH] knfsd: SUNRPC: Make rq_daddr field address-version independent
The rq_daddr field must support larger 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>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svcsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index b11669670baa..9d7a819149ce 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -484,7 +484,7 @@ svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) | |||
484 | cmh->cmsg_level = SOL_IP; | 484 | cmh->cmsg_level = SOL_IP; |
485 | cmh->cmsg_type = IP_PKTINFO; | 485 | cmh->cmsg_type = IP_PKTINFO; |
486 | pki->ipi_ifindex = 0; | 486 | pki->ipi_ifindex = 0; |
487 | pki->ipi_spec_dst.s_addr = rqstp->rq_daddr; | 487 | pki->ipi_spec_dst.s_addr = rqstp->rq_daddr.addr.s_addr; |
488 | 488 | ||
489 | if (sock_sendmsg(sock, &msg, 0) < 0) | 489 | if (sock_sendmsg(sock, &msg, 0) < 0) |
490 | goto out; | 490 | goto out; |
@@ -763,7 +763,7 @@ svc_udp_recvfrom(struct svc_rqst *rqstp) | |||
763 | rqstp->rq_addrlen = sizeof(struct sockaddr_in); | 763 | rqstp->rq_addrlen = sizeof(struct sockaddr_in); |
764 | 764 | ||
765 | /* Remember which interface received this request */ | 765 | /* Remember which interface received this request */ |
766 | rqstp->rq_daddr = skb->nh.iph->daddr; | 766 | rqstp->rq_daddr.addr.s_addr = skb->nh.iph->daddr; |
767 | 767 | ||
768 | if (skb_is_nonlinear(skb)) { | 768 | if (skb_is_nonlinear(skb)) { |
769 | /* we have to copy */ | 769 | /* we have to copy */ |