aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2011-03-25 04:28:45 -0400
committerDavid S. Miller <davem@davemloft.net>2011-03-25 04:28:45 -0400
commit6df59a84eccd4cad7fcefda3e0c5e55239a3b2dd (patch)
tree7d23038ad450413eb4238f14707e1f0dce29638a /include/net/route.h
parent37e826c513883099c298317bad1b3b677b2905fb (diff)
route: Take the right src and dst addresses in ip_route_newports
When we set up the flow informations in ip_route_newports(), we take the address informations from the the rt_key_src and rt_key_dst fields of the rtable. They appear to be empty. So take the address informations from rt_src and rt_dst instead. This issue was introduced by commit 5e2b61f78411be25f0b84f97d5b5d312f184dfd1 ("ipv4: Remove flowi from struct rtable.") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h
index dc102445ec47..f88429cad52a 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -270,8 +270,8 @@ static inline struct rtable *ip_route_newports(struct rtable *rt,
270 struct flowi4 fl4 = { 270 struct flowi4 fl4 = {
271 .flowi4_oif = rt->rt_oif, 271 .flowi4_oif = rt->rt_oif,
272 .flowi4_mark = rt->rt_mark, 272 .flowi4_mark = rt->rt_mark,
273 .daddr = rt->rt_key_dst, 273 .daddr = rt->rt_dst,
274 .saddr = rt->rt_key_src, 274 .saddr = rt->rt_src,
275 .flowi4_tos = rt->rt_tos, 275 .flowi4_tos = rt->rt_tos,
276 .flowi4_proto = protocol, 276 .flowi4_proto = protocol,
277 .fl4_sport = sport, 277 .fl4_sport = sport,