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/tcp_ipv6.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/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 7ed0ba1995f0..2b0c186862c8 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -248,8 +248,8 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr, | |||
248 | (saddr ? saddr : &np->saddr)); | 248 | (saddr ? saddr : &np->saddr)); |
249 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 249 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
250 | fl6.flowi6_mark = sk->sk_mark; | 250 | fl6.flowi6_mark = sk->sk_mark; |
251 | fl6.uli.ports.dport = usin->sin6_port; | 251 | fl6.fl6_dport = usin->sin6_port; |
252 | fl6.uli.ports.sport = inet->inet_sport; | 252 | fl6.fl6_sport = inet->inet_sport; |
253 | 253 | ||
254 | final_p = fl6_update_dst(&fl6, np->opt, &final); | 254 | final_p = fl6_update_dst(&fl6, np->opt, &final); |
255 | 255 | ||
@@ -401,8 +401,8 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
401 | ipv6_addr_copy(&fl6.saddr, &np->saddr); | 401 | ipv6_addr_copy(&fl6.saddr, &np->saddr); |
402 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 402 | fl6.flowi6_oif = sk->sk_bound_dev_if; |
403 | fl6.flowi6_mark = sk->sk_mark; | 403 | fl6.flowi6_mark = sk->sk_mark; |
404 | fl6.uli.ports.dport = inet->inet_dport; | 404 | fl6.fl6_dport = inet->inet_dport; |
405 | fl6.uli.ports.sport = inet->inet_sport; | 405 | fl6.fl6_sport = inet->inet_sport; |
406 | security_skb_classify_flow(skb, flowi6_to_flowi(&fl6)); | 406 | security_skb_classify_flow(skb, flowi6_to_flowi(&fl6)); |
407 | 407 | ||
408 | dst = ip6_dst_lookup_flow(sk, &fl6, NULL, false); | 408 | dst = ip6_dst_lookup_flow(sk, &fl6, NULL, false); |
@@ -493,8 +493,8 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req, | |||
493 | fl6.flowlabel = 0; | 493 | fl6.flowlabel = 0; |
494 | fl6.flowi6_oif = treq->iif; | 494 | fl6.flowi6_oif = treq->iif; |
495 | fl6.flowi6_mark = sk->sk_mark; | 495 | fl6.flowi6_mark = sk->sk_mark; |
496 | fl6.uli.ports.dport = inet_rsk(req)->rmt_port; | 496 | fl6.fl6_dport = inet_rsk(req)->rmt_port; |
497 | fl6.uli.ports.sport = inet_rsk(req)->loc_port; | 497 | fl6.fl6_sport = inet_rsk(req)->loc_port; |
498 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); | 498 | security_req_classify_flow(req, flowi6_to_flowi(&fl6)); |
499 | 499 | ||
500 | opt = np->opt; | 500 | opt = np->opt; |
@@ -1057,8 +1057,8 @@ static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win, | |||
1057 | 1057 | ||
1058 | fl6.flowi6_proto = IPPROTO_TCP; | 1058 | fl6.flowi6_proto = IPPROTO_TCP; |
1059 | fl6.flowi6_oif = inet6_iif(skb); | 1059 | fl6.flowi6_oif = inet6_iif(skb); |
1060 | fl6.uli.ports.dport = t1->dest; | 1060 | fl6.fl6_dport = t1->dest; |
1061 | fl6.uli.ports.sport = t1->source; | 1061 | fl6.fl6_sport = t1->source; |
1062 | security_skb_classify_flow(skb, flowi6_to_flowi(&fl6)); | 1062 | security_skb_classify_flow(skb, flowi6_to_flowi(&fl6)); |
1063 | 1063 | ||
1064 | /* Pass a socket to ip6_dst_lookup either it is for RST | 1064 | /* Pass a socket to ip6_dst_lookup either it is for RST |