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/ipv4 | |
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/ipv4')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 77cccda1ad0c..180336d47df6 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1311,14 +1311,13 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb) | |||
1311 | tcp_clear_options(&tmp_opt); | 1311 | tcp_clear_options(&tmp_opt); |
1312 | 1312 | ||
1313 | tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; | 1313 | tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; |
1314 | tcp_openreq_init(req, &tmp_opt, skb); | 1314 | tcp_openreq_init(req, &tmp_opt, skb, sk); |
1315 | 1315 | ||
1316 | ireq = inet_rsk(req); | 1316 | ireq = inet_rsk(req); |
1317 | ireq->ir_loc_addr = daddr; | 1317 | ireq->ir_loc_addr = daddr; |
1318 | ireq->ir_rmt_addr = saddr; | 1318 | ireq->ir_rmt_addr = saddr; |
1319 | ireq->no_srccheck = inet_sk(sk)->transparent; | 1319 | ireq->no_srccheck = inet_sk(sk)->transparent; |
1320 | ireq->opt = tcp_v4_save_options(skb); | 1320 | ireq->opt = tcp_v4_save_options(skb); |
1321 | ireq->ir_mark = inet_request_mark(sk, skb); | ||
1322 | 1321 | ||
1323 | if (security_inet_conn_request(sk, skb, req)) | 1322 | if (security_inet_conn_request(sk, skb, req)) |
1324 | goto drop_and_free; | 1323 | goto drop_and_free; |