diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 00:29:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:44 -0500 |
commit | 1d28f42c1bd4bb2363d88df74d0128b4da135b4a (patch) | |
tree | cb2e652fe79a2bc307e871bc2d3fa51cc8051e45 /net/ipv6/raw.c | |
parent | ca116922afa8cc5ad46b00c0a637b1cde5ca478a (diff) |
net: Put flowi_* prefix on AF independent members of struct flowi
I intend to turn struct flowi into a union of AF specific flowi
structs. There will be a common structure that each variant includes
first, much like struct sock_common.
This is the first step to move in that direction.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index dc29b07caf42..323ad44ff775 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -588,9 +588,9 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, | |||
588 | 588 | ||
589 | csum = csum_ipv6_magic(&fl->fl6_src, | 589 | csum = csum_ipv6_magic(&fl->fl6_src, |
590 | &fl->fl6_dst, | 590 | &fl->fl6_dst, |
591 | total_len, fl->proto, tmp_csum); | 591 | total_len, fl->flowi_proto, tmp_csum); |
592 | 592 | ||
593 | if (csum == 0 && fl->proto == IPPROTO_UDP) | 593 | if (csum == 0 && fl->flowi_proto == IPPROTO_UDP) |
594 | csum = CSUM_MANGLED_0; | 594 | csum = CSUM_MANGLED_0; |
595 | 595 | ||
596 | if (skb_store_bits(skb, offset, &csum, 2)) | 596 | if (skb_store_bits(skb, offset, &csum, 2)) |
@@ -679,7 +679,7 @@ static int rawv6_probe_proto_opt(struct flowi *fl, struct msghdr *msg) | |||
679 | if (!iov) | 679 | if (!iov) |
680 | continue; | 680 | continue; |
681 | 681 | ||
682 | switch (fl->proto) { | 682 | switch (fl->flowi_proto) { |
683 | case IPPROTO_ICMPV6: | 683 | case IPPROTO_ICMPV6: |
684 | /* check if one-byte field is readable or not. */ | 684 | /* check if one-byte field is readable or not. */ |
685 | if (iov->iov_base && iov->iov_len < 1) | 685 | if (iov->iov_base && iov->iov_len < 1) |
@@ -758,7 +758,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
758 | */ | 758 | */ |
759 | memset(&fl, 0, sizeof(fl)); | 759 | memset(&fl, 0, sizeof(fl)); |
760 | 760 | ||
761 | fl.mark = sk->sk_mark; | 761 | fl.flowi_mark = sk->sk_mark; |
762 | 762 | ||
763 | if (sin6) { | 763 | if (sin6) { |
764 | if (addr_len < SIN6_LEN_RFC2133) | 764 | if (addr_len < SIN6_LEN_RFC2133) |
@@ -800,7 +800,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
800 | if (addr_len >= sizeof(struct sockaddr_in6) && | 800 | if (addr_len >= sizeof(struct sockaddr_in6) && |
801 | sin6->sin6_scope_id && | 801 | sin6->sin6_scope_id && |
802 | ipv6_addr_type(daddr)&IPV6_ADDR_LINKLOCAL) | 802 | ipv6_addr_type(daddr)&IPV6_ADDR_LINKLOCAL) |
803 | fl.oif = sin6->sin6_scope_id; | 803 | fl.flowi_oif = sin6->sin6_scope_id; |
804 | } else { | 804 | } else { |
805 | if (sk->sk_state != TCP_ESTABLISHED) | 805 | if (sk->sk_state != TCP_ESTABLISHED) |
806 | return -EDESTADDRREQ; | 806 | return -EDESTADDRREQ; |
@@ -810,8 +810,8 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
810 | fl.fl6_flowlabel = np->flow_label; | 810 | fl.fl6_flowlabel = np->flow_label; |
811 | } | 811 | } |
812 | 812 | ||
813 | if (fl.oif == 0) | 813 | if (fl.flowi_oif == 0) |
814 | fl.oif = sk->sk_bound_dev_if; | 814 | fl.flowi_oif = sk->sk_bound_dev_if; |
815 | 815 | ||
816 | if (msg->msg_controllen) { | 816 | if (msg->msg_controllen) { |
817 | opt = &opt_space; | 817 | opt = &opt_space; |
@@ -838,7 +838,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
838 | opt = fl6_merge_options(&opt_space, flowlabel, opt); | 838 | opt = fl6_merge_options(&opt_space, flowlabel, opt); |
839 | opt = ipv6_fixup_options(&opt_space, opt); | 839 | opt = ipv6_fixup_options(&opt_space, opt); |
840 | 840 | ||
841 | fl.proto = proto; | 841 | fl.flowi_proto = proto; |
842 | err = rawv6_probe_proto_opt(&fl, msg); | 842 | err = rawv6_probe_proto_opt(&fl, msg); |
843 | if (err) | 843 | if (err) |
844 | goto out; | 844 | goto out; |
@@ -852,8 +852,8 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
852 | 852 | ||
853 | final_p = fl6_update_dst(&fl, opt, &final); | 853 | final_p = fl6_update_dst(&fl, opt, &final); |
854 | 854 | ||
855 | if (!fl.oif && ipv6_addr_is_multicast(&fl.fl6_dst)) | 855 | if (!fl.flowi_oif && ipv6_addr_is_multicast(&fl.fl6_dst)) |
856 | fl.oif = np->mcast_oif; | 856 | fl.flowi_oif = np->mcast_oif; |
857 | security_sk_classify_flow(sk, &fl); | 857 | security_sk_classify_flow(sk, &fl); |
858 | 858 | ||
859 | dst = ip6_dst_lookup_flow(sk, &fl, final_p, true); | 859 | dst = ip6_dst_lookup_flow(sk, &fl, final_p, true); |