aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/icmp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-08 20:24:10 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-09 00:24:07 -0400
commitf5fca6086511294653a9e821f8e22f041415ba7b (patch)
tree1ab025012bf44402e7f816428461d8def54016c1 /net/ipv4/icmp.c
parent77968b78242ee25e2a4d759f0fca8dd52df6d479 (diff)
ipv4: Pass flow key down into ip_append_*().
This way rt->rt_dst accesses are unnecessary. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r--net/ipv4/icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index be5cc8d04c00..853a670f6df6 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -297,7 +297,7 @@ static void icmp_push_reply(struct icmp_bxm *icmp_param,
297 struct sk_buff *skb; 297 struct sk_buff *skb;
298 298
299 sk = icmp_sk(dev_net((*rt)->dst.dev)); 299 sk = icmp_sk(dev_net((*rt)->dst.dev));
300 if (ip_append_data(sk, icmp_glue_bits, icmp_param, 300 if (ip_append_data(sk, fl4, icmp_glue_bits, icmp_param,
301 icmp_param->data_len+icmp_param->head_len, 301 icmp_param->data_len+icmp_param->head_len,
302 icmp_param->head_len, 302 icmp_param->head_len,
303 ipc, rt, MSG_DONTWAIT) < 0) { 303 ipc, rt, MSG_DONTWAIT) < 0) {