aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 16:22:43 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:54 -0500
commit4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c (patch)
treec29c8070012cffb38fe249cf528589a675f622b1 /net/ipv6/af_inet6.c
parent9cce96df5b76691712dba22e83ff5efe900361e1 (diff)
ipv6: Convert to use flowi6 where applicable.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r--net/ipv6/af_inet6.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 923febea8989..689eea6553fd 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -652,22 +652,22 @@ int inet6_sk_rebuild_header(struct sock *sk)
652 if (dst == NULL) { 652 if (dst == NULL) {
653 struct inet_sock *inet = inet_sk(sk); 653 struct inet_sock *inet = inet_sk(sk);
654 struct in6_addr *final_p, final; 654 struct in6_addr *final_p, final;
655 struct flowi fl; 655 struct flowi6 fl6;
656 656
657 memset(&fl, 0, sizeof(fl)); 657 memset(&fl6, 0, sizeof(fl6));
658 fl.flowi_proto = sk->sk_protocol; 658 fl6.flowi6_proto = sk->sk_protocol;
659 ipv6_addr_copy(&fl.fl6_dst, &np->daddr); 659 ipv6_addr_copy(&fl6.daddr, &np->daddr);
660 ipv6_addr_copy(&fl.fl6_src, &np->saddr); 660 ipv6_addr_copy(&fl6.saddr, &np->saddr);
661 fl.fl6_flowlabel = np->flow_label; 661 fl6.flowlabel = np->flow_label;
662 fl.flowi_oif = sk->sk_bound_dev_if; 662 fl6.flowi6_oif = sk->sk_bound_dev_if;
663 fl.flowi_mark = sk->sk_mark; 663 fl6.flowi6_mark = sk->sk_mark;
664 fl.fl6_dport = inet->inet_dport; 664 fl6.uli.ports.dport = inet->inet_dport;
665 fl.fl6_sport = inet->inet_sport; 665 fl6.uli.ports.sport = inet->inet_sport;
666 security_sk_classify_flow(sk, &fl); 666 security_sk_classify_flow(sk, flowi6_to_flowi(&fl6));
667 667
668 final_p = fl6_update_dst(&fl, np->opt, &final); 668 final_p = fl6_update_dst(&fl6, np->opt, &final);
669 669
670 dst = ip6_dst_lookup_flow(sk, &fl, final_p, false); 670 dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false);
671 if (IS_ERR(dst)) { 671 if (IS_ERR(dst)) {
672 sk->sk_route_caps = 0; 672 sk->sk_route_caps = 0;
673 sk->sk_err_soft = -PTR_ERR(dst); 673 sk->sk_err_soft = -PTR_ERR(dst);