diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-25 17:09:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-27 15:53:36 -0700 |
commit | 936b8bdb53f90840e658904530f9db8d02ac804b (patch) | |
tree | e3886a46d0391a200db08fac4257fc64020990e5 /net/ipv6/tcp_ipv6.c | |
parent | 9403715977075c89b1dbcdd7713ab542807a04ac (diff) | |
download | op-kernel-dev-936b8bdb53f90840e658904530f9db8d02ac804b.zip op-kernel-dev-936b8bdb53f90840e658904530f9db8d02ac804b.tar.gz |
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/tcp_ipv6.c')
-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 91b8a2e..2fd886f 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) { |