aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-09 16:22:43 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-10 16:32:46 -0400
commit0a5ebb8000c5362be368df9d197943deb06b6916 (patch)
tree63910ddcbd4672dd7705e524a3db8f1324233365 /include/net/ip.h
parent1c3319fb69c29376fe23c1aa0cd7cb6df91c7883 (diff)
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 'include/net/ip.h')
-rw-r--r--include/net/ip.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 0b30d3ab4a30..66dd49149208 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -174,8 +174,8 @@ static inline __u8 ip_reply_arg_flowi_flags(const struct ip_reply_arg *arg)
174 return (arg->flags & IP_REPLY_ARG_NOSRCCHECK) ? FLOWI_FLAG_ANYSRC : 0; 174 return (arg->flags & IP_REPLY_ARG_NOSRCCHECK) ? FLOWI_FLAG_ANYSRC : 0;
175} 175}
176 176
177void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, 177void ip_send_reply(struct sock *sk, struct sk_buff *skb, __be32 daddr,
178 unsigned int len); 178 struct ip_reply_arg *arg, unsigned int len);
179 179
180struct ipv4_config { 180struct ipv4_config {
181 int log_martians; 181 int log_martians;