diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 16:36:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:55 -0500 |
commit | 1958b856c1a59c0f1e892b92debb8c9fe4f364dc (patch) | |
tree | 679e060ad7c1e36ee2e5aec0c686921c66c9bc2c /net/ipv6/inet6_connection_sock.c | |
parent | 4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c (diff) |
net: Put fl6_* macros to struct flowi6 and use them again.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/inet6_connection_sock.c')
-rw-r--r-- | net/ipv6/inet6_connection_sock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index 27d669160ba6..166054650466 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c | |||
@@ -70,8 +70,8 @@ struct dst_entry *inet6_csk_route_req(struct sock *sk, | |||
70 | ipv6_addr_copy(&fl6.saddr, &treq->loc_addr); | 70 | ipv6_addr_copy(&fl6.saddr, &treq->loc_addr); |
71 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 71 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
72 | fl6.flowi6_mark = sk->sk_mark; | 72 | fl6.flowi6_mark = sk->sk_mark; |
73 | fl6.uli.ports.dport = inet_rsk(req)->rmt_port; | 73 | fl6.fl6_dport = inet_rsk(req)->rmt_port; |
74 | fl6.uli.ports.sport = inet_rsk(req)->loc_port; | 74 | fl6.fl6_sport = inet_rsk(req)->loc_port; |
75 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); | 75 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); |
76 | 76 | ||
77 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false); | 77 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false); |
@@ -220,8 +220,8 @@ int inet6_csk_xmit(struct sk_buff *skb) | |||
220 | IP6_ECN_flow_xmit(sk, fl6.flowlabel); | 220 | IP6_ECN_flow_xmit(sk, fl6.flowlabel); |
221 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 221 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
222 | fl6.flowi6_mark = sk->sk_mark; | 222 | fl6.flowi6_mark = sk->sk_mark; |
223 | fl6.uli.ports.sport = inet->inet_sport; | 223 | fl6.fl6_sport = inet->inet_sport; |
224 | fl6.uli.ports.dport = inet->inet_dport; | 224 | fl6.fl6_dport = inet->inet_dport; |
225 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 225 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
226 | 226 | ||
227 | final_p = fl6_update_dst(&fl6, np->opt, &final); | 227 | final_p = fl6_update_dst(&fl6, np->opt, &final); |