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/dccp | |
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/dccp')
-rw-r--r-- | net/dccp/ipv6.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 8d26c122de64..de1b7e37ad5b 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -158,8 +158,8 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
158 | ipv6_addr_copy(&fl6.daddr, &np->daddr); | 158 | ipv6_addr_copy(&fl6.daddr, &np->daddr); |
159 | ipv6_addr_copy(&fl6.saddr, &np->saddr); | 159 | ipv6_addr_copy(&fl6.saddr, &np->saddr); |
160 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 160 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
161 | fl6.uli.ports.dport = inet->inet_dport; | 161 | fl6.fl6_dport = inet->inet_dport; |
162 | fl6.uli.ports.sport = inet->inet_sport; | 162 | fl6.fl6_sport = inet->inet_sport; |
163 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 163 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
164 | 164 | ||
165 | dst = ip6_dst_lookup_flow(sk, &fl6, NULL, false); | 165 | dst = ip6_dst_lookup_flow(sk, &fl6, NULL, false); |
@@ -253,8 +253,8 @@ static int dccp_v6_send_response(struct sock *sk, struct request_sock *req, | |||
253 | ipv6_addr_copy(&fl6.saddr, &ireq6->loc_addr); | 253 | ipv6_addr_copy(&fl6.saddr, &ireq6->loc_addr); |
254 | fl6.flowlabel = 0; | 254 | fl6.flowlabel = 0; |
255 | fl6.flowi6_oif = ireq6->iif; | 255 | fl6.flowi6_oif = ireq6->iif; |
256 | fl6.uli.ports.dport = inet_rsk(req)->rmt_port; | 256 | fl6.fl6_dport = inet_rsk(req)->rmt_port; |
257 | fl6.uli.ports.sport = inet_rsk(req)->loc_port; | 257 | fl6.fl6_sport = inet_rsk(req)->loc_port; |
258 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); | 258 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); |
259 | 259 | ||
260 | opt = np->opt; | 260 | opt = np->opt; |
@@ -323,8 +323,8 @@ static void dccp_v6_ctl_send_reset(struct sock *sk, struct sk_buff *rxskb) | |||
323 | 323 | ||
324 | fl6.flowi6_proto = IPPROTO_DCCP; | 324 | fl6.flowi6_proto = IPPROTO_DCCP; |
325 | fl6.flowi6_oif = inet6_iif(rxskb); | 325 | fl6.flowi6_oif = inet6_iif(rxskb); |
326 | fl6.uli.ports.dport = dccp_hdr(skb)->dccph_dport; | 326 | fl6.fl6_dport = dccp_hdr(skb)->dccph_dport; |
327 | fl6.uli.ports.sport = dccp_hdr(skb)->dccph_sport; | 327 | fl6.fl6_sport = dccp_hdr(skb)->dccph_sport; |
328 | security_skb_classify_flow(rxskb, flowi6_to_flowi(&fl6)); | 328 | security_skb_classify_flow(rxskb, flowi6_to_flowi(&fl6)); |
329 | 329 | ||
330 | /* sk = NULL, but it is safe for now. RST socket required. */ | 330 | /* sk = NULL, but it is safe for now. RST socket required. */ |
@@ -535,8 +535,8 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, | |||
535 | final_p = fl6_update_dst(&fl6, opt, &final); | 535 | final_p = fl6_update_dst(&fl6, opt, &final); |
536 | ipv6_addr_copy(&fl6.saddr, &ireq6->loc_addr); | 536 | ipv6_addr_copy(&fl6.saddr, &ireq6->loc_addr); |
537 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 537 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
538 | fl6.uli.ports.dport = inet_rsk(req)->rmt_port; | 538 | fl6.fl6_dport = inet_rsk(req)->rmt_port; |
539 | fl6.uli.ports.sport = inet_rsk(req)->loc_port; | 539 | fl6.fl6_sport = inet_rsk(req)->loc_port; |
540 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 540 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
541 | 541 | ||
542 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false); | 542 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false); |
@@ -957,8 +957,8 @@ static int dccp_v6_connect(struct sock *sk, struct sockaddr *uaddr, | |||
957 | ipv6_addr_copy(&fl6.daddr, &np->daddr); | 957 | ipv6_addr_copy(&fl6.daddr, &np->daddr); |
958 | ipv6_addr_copy(&fl6.saddr, saddr ? saddr : &np->saddr); | 958 | ipv6_addr_copy(&fl6.saddr, saddr ? saddr : &np->saddr); |
959 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 959 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
960 | fl6.uli.ports.dport = usin->sin6_port; | 960 | fl6.fl6_dport = usin->sin6_port; |
961 | fl6.uli.ports.sport = inet->inet_sport; | 961 | fl6.fl6_sport = inet->inet_sport; |
962 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 962 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
963 | 963 | ||
964 | final_p = fl6_update_dst(&fl6, np->opt, &final); | 964 | final_p = fl6_update_dst(&fl6, np->opt, &final); |