diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-13 18:01:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-16 13:49:05 -0400 |
commit | c5be24ff62d238a3fdd5d15461b420cd72e78a14 (patch) | |
tree | fcdeb6a8ee58e96547b41df593fd193894620709 /net/ipv4 | |
parent | 1a8218e96271790a07dd7065a2ef173e0f67e328 (diff) |
ipv4: Trivial rt->rt_src conversions in net/ipv4/route.c
At these points we have a fully filled in value via the IP
header the form of ip_hdr(skb)->saddr
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index ad141d894e4e..cb93c32027d7 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1435,7 +1435,7 @@ void ip_rt_send_redirect(struct sk_buff *skb) | |||
1435 | peer->rate_tokens == ip_rt_redirect_number && | 1435 | peer->rate_tokens == ip_rt_redirect_number && |
1436 | net_ratelimit()) | 1436 | net_ratelimit()) |
1437 | printk(KERN_WARNING "host %pI4/if%d ignores redirects for %pI4 to %pI4.\n", | 1437 | printk(KERN_WARNING "host %pI4/if%d ignores redirects for %pI4 to %pI4.\n", |
1438 | &rt->rt_src, rt->rt_iif, | 1438 | &ip_hdr(skb)->saddr, rt->rt_iif, |
1439 | &rt->rt_dst, &rt->rt_gateway); | 1439 | &rt->rt_dst, &rt->rt_gateway); |
1440 | #endif | 1440 | #endif |
1441 | } | 1441 | } |
@@ -1704,7 +1704,7 @@ void ip_rt_get_source(u8 *addr, struct sk_buff *skb, struct rtable *rt) | |||
1704 | __be32 src; | 1704 | __be32 src; |
1705 | 1705 | ||
1706 | if (rt_is_output_route(rt)) | 1706 | if (rt_is_output_route(rt)) |
1707 | src = rt->rt_src; | 1707 | src = ip_hdr(skb)->saddr; |
1708 | else { | 1708 | else { |
1709 | struct fib_result res; | 1709 | struct fib_result res; |
1710 | struct flowi4 fl4; | 1710 | struct flowi4 fl4; |