aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/svcsock.c4
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 */