diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 01:12:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:48 -0500 |
commit | 9d6ec938019c6b16cb9ec96598ebe8f20de435fe (patch) | |
tree | 9b850eb7fd48a6e5ffc15f47afd2e3edc93f5290 /net/ipv4/xfrm4_policy.c | |
parent | 68a5e3dd0a0056d8b349f9eea3756adda53ec17a (diff) |
ipv4: Use flowi4 in public route lookup interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index b7b0921b425d..b111f468fa29 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -22,16 +22,16 @@ static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, | |||
22 | const xfrm_address_t *saddr, | 22 | const xfrm_address_t *saddr, |
23 | const xfrm_address_t *daddr) | 23 | const xfrm_address_t *daddr) |
24 | { | 24 | { |
25 | struct flowi fl = { | 25 | struct flowi4 fl4 = { |
26 | .fl4_dst = daddr->a4, | 26 | .daddr = daddr->a4, |
27 | .fl4_tos = tos, | 27 | .flowi4_tos = tos, |
28 | }; | 28 | }; |
29 | struct rtable *rt; | 29 | struct rtable *rt; |
30 | 30 | ||
31 | if (saddr) | 31 | if (saddr) |
32 | fl.fl4_src = saddr->a4; | 32 | fl4.saddr = saddr->a4; |
33 | 33 | ||
34 | rt = __ip_route_output_key(net, &fl); | 34 | rt = __ip_route_output_key(net, &fl4); |
35 | if (!IS_ERR(rt)) | 35 | if (!IS_ERR(rt)) |
36 | return &rt->dst; | 36 | return &rt->dst; |
37 | 37 | ||