diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-09 13:22:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-10 13:32:46 -0700 |
commit | 0a5ebb8000c5362be368df9d197943deb06b6916 (patch) | |
tree | 63910ddcbd4672dd7705e524a3db8f1324233365 /net/ipv4/tcp_ipv4.c | |
parent | 1c3319fb69c29376fe23c1aa0cd7cb6df91c7883 (diff) | |
download | kernel_samsung_tuna-0a5ebb8000c5362be368df9d197943deb06b6916.zip kernel_samsung_tuna-0a5ebb8000c5362be368df9d197943deb06b6916.tar.gz kernel_samsung_tuna-0a5ebb8000c5362be368df9d197943deb06b6916.tar.bz2 |
ipv4: Pass explicit daddr arg to ip_send_reply().
This eliminates an access to rt->rt_src.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 2b65503..f67fb34 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -651,7 +651,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb) arg.flags = (sk && inet_sk(sk)->transparent) ? IP_REPLY_ARG_NOSRCCHECK : 0; net = dev_net(skb_dst(skb)->dev); - ip_send_reply(net->ipv4.tcp_sock, skb, + ip_send_reply(net->ipv4.tcp_sock, skb, ip_hdr(skb)->saddr, &arg, arg.iov[0].iov_len); TCP_INC_STATS_BH(net, TCP_MIB_OUTSEGS); @@ -726,7 +726,7 @@ static void tcp_v4_send_ack(struct sk_buff *skb, u32 seq, u32 ack, if (oif) arg.bound_dev_if = oif; - ip_send_reply(net->ipv4.tcp_sock, skb, + ip_send_reply(net->ipv4.tcp_sock, skb, ip_hdr(skb)->saddr, &arg, arg.iov[0].iov_len); TCP_INC_STATS_BH(net, TCP_MIB_OUTSEGS); |