diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-25 16:09:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-28 00:53:36 +0200 |
commit | 936b8bdb53f90840e658904530f9db8d02ac804b (patch) | |
tree | e3886a46d0391a200db08fac4257fc64020990e5 /net/ipv6 | |
parent | tcp: move around a few calls in tcp_v6_conn_request (diff) | |
download | linux-936b8bdb53f90840e658904530f9db8d02ac804b.tar.xz linux-936b8bdb53f90840e658904530f9db8d02ac804b.zip |
tcp: add init_seq method to tcp_request_sock_ops
More work in preparation of unifying tcp_v4_conn_request and
tcp_v6_conn_request: indirect the init sequence calls via the
tcp_request_sock_ops.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 91b8a2e699f3..2fd886fe8340 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -775,6 +775,7 @@ static const struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { .cookie_init_seq = cookie_v6_init_sequence, #endif .route_req = tcp_v6_route_req, + .init_seq = tcp_v6_init_sequence, }; static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win, @@ -1114,7 +1115,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb) goto drop_and_release; } - isn = tcp_v6_init_sequence(skb); + isn = af_ops->init_seq(skb); } if (!dst) { |