diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-17 11:25:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-17 15:30:54 -0700 |
commit | e0f802fbcaa3bffe4728e37a8fa1279b5d554173 (patch) | |
tree | cdaf083f9eafc6147a7cbe2c6658fa498ce4aa4f /net/ipv4/tcp_ipv4.c | |
parent | d215d10f2d6bd41ce9d11a2707568bbb50d2c32e (diff) | |
download | linux-e0f802fbcaa3bffe4728e37a8fa1279b5d554173.tar.bz2 |
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/tcp_ipv4.c')
-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) tcp_clear_options(&tmp_opt); tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; - tcp_openreq_init(req, &tmp_opt, skb); + tcp_openreq_init(req, &tmp_opt, skb, sk); ireq = inet_rsk(req); ireq->ir_loc_addr = daddr; ireq->ir_rmt_addr = saddr; ireq->no_srccheck = inet_sk(sk)->transparent; ireq->opt = tcp_v4_save_options(skb); - ireq->ir_mark = inet_request_mark(sk, skb); if (security_inet_conn_request(sk, skb, req)) goto drop_and_free; |