diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-17 04:25:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-17 18:30:54 -0400 |
commit | e0f802fbcaa3bffe4728e37a8fa1279b5d554173 (patch) | |
tree | cdaf083f9eafc6147a7cbe2c6658fa498ce4aa4f /net/ipv6/tcp_ipv6.c | |
parent | d215d10f2d6bd41ce9d11a2707568bbb50d2c32e (diff) |
tcp: move ir_mark initialization to tcp_openreq_init
ir_mark initialization is done for both TCP v4 and v6, move it in the
common tcp_openreq_init function.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 229239ad96b1..08ae3da0db4a 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1025,7 +1025,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb) | |||
1025 | tcp_clear_options(&tmp_opt); | 1025 | tcp_clear_options(&tmp_opt); |
1026 | 1026 | ||
1027 | tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; | 1027 | tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; |
1028 | tcp_openreq_init(req, &tmp_opt, skb); | 1028 | tcp_openreq_init(req, &tmp_opt, skb, sk); |
1029 | 1029 | ||
1030 | ireq = inet_rsk(req); | 1030 | ireq = inet_rsk(req); |
1031 | ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; | 1031 | ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; |
@@ -1034,7 +1034,6 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb) | |||
1034 | TCP_ECN_create_request(req, skb, sock_net(sk)); | 1034 | TCP_ECN_create_request(req, skb, sock_net(sk)); |
1035 | 1035 | ||
1036 | ireq->ir_iif = sk->sk_bound_dev_if; | 1036 | ireq->ir_iif = sk->sk_bound_dev_if; |
1037 | ireq->ir_mark = inet_request_mark(sk, skb); | ||
1038 | 1037 | ||
1039 | /* So that link locals have meaning */ | 1038 | /* So that link locals have meaning */ |
1040 | if (!sk->sk_bound_dev_if && | 1039 | if (!sk->sk_bound_dev_if && |