aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 01:12:47 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:48 -0500
commit9d6ec938019c6b16cb9ec96598ebe8f20de435fe (patch)
tree9b850eb7fd48a6e5ffc15f47afd2e3edc93f5290 /net/dccp
parent68a5e3dd0a0056d8b349f9eea3756adda53ec17a (diff)
ipv4: Use flowi4 in public route lookup interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/ipv4.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index d934b2040230..be984706126b 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -465,18 +465,18 @@ static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk,
465 struct sk_buff *skb) 465 struct sk_buff *skb)
466{ 466{
467 struct rtable *rt; 467 struct rtable *rt;
468 struct flowi fl = { 468 struct flowi4 fl4 = {
469 .flowi_oif = skb_rtable(skb)->rt_iif, 469 .flowi4_oif = skb_rtable(skb)->rt_iif,
470 .fl4_dst = ip_hdr(skb)->saddr, 470 .daddr = ip_hdr(skb)->saddr,
471 .fl4_src = ip_hdr(skb)->daddr, 471 .saddr = ip_hdr(skb)->daddr,
472 .fl4_tos = RT_CONN_FLAGS(sk), 472 .flowi4_tos = RT_CONN_FLAGS(sk),
473 .flowi_proto = sk->sk_protocol, 473 .flowi4_proto = sk->sk_protocol,
474 .fl4_sport = dccp_hdr(skb)->dccph_dport, 474 .uli.ports.sport = dccp_hdr(skb)->dccph_dport,
475 .fl4_dport = dccp_hdr(skb)->dccph_sport, 475 .uli.ports.dport = dccp_hdr(skb)->dccph_sport,
476 }; 476 };
477 477
478 security_skb_classify_flow(skb, &fl); 478 security_skb_classify_flow(skb, flowi4_to_flowi(&fl4));
479 rt = ip_route_output_flow(net, &fl, sk); 479 rt = ip_route_output_flow(net, &fl4, sk);
480 if (IS_ERR(rt)) { 480 if (IS_ERR(rt)) {
481 IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES); 481 IP_INC_STATS_BH(net, IPSTATS_MIB_OUTNOROUTES);
482 return NULL; 482 return NULL;