diff options
author | William Allen Simpson <william.allen.simpson@gmail.com> | 2009-12-02 13:07:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 01:07:23 -0500 |
commit | e6b4d11367519bc71729c09d05a126b133c755be (patch) | |
tree | b5d99b115a6ca9564d367b243a826d8b09da237e /net/dccp/ipv6.c | |
parent | e00484023ebe94dce03fdd1270edf3e191c2bc79 (diff) |
TCPCT part 1a: add request_values parameter for sending SYNACK
Add optional function parameters associated with sending SYNACK.
These parameters are not needed after sending SYNACK, and are not
used for retransmission. Avoids extending struct tcp_request_sock,
and avoids allocating kernel memory.
Also affects DCCP as it uses common struct request_sock_ops,
but this parameter is currently reserved for future use.
Signed-off-by: William.Allen.Simpson@gmail.com
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv6.c')
-rw-r--r-- | net/dccp/ipv6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 50ea91a77705..6574215a1f51 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -241,7 +241,8 @@ out: | |||
241 | } | 241 | } |
242 | 242 | ||
243 | 243 | ||
244 | static int dccp_v6_send_response(struct sock *sk, struct request_sock *req) | 244 | static int dccp_v6_send_response(struct sock *sk, struct request_sock *req, |
245 | struct request_values *rv_unused) | ||
245 | { | 246 | { |
246 | struct inet6_request_sock *ireq6 = inet6_rsk(req); | 247 | struct inet6_request_sock *ireq6 = inet6_rsk(req); |
247 | struct ipv6_pinfo *np = inet6_sk(sk); | 248 | struct ipv6_pinfo *np = inet6_sk(sk); |
@@ -468,7 +469,7 @@ static int dccp_v6_conn_request(struct sock *sk, struct sk_buff *skb) | |||
468 | dreq->dreq_iss = dccp_v6_init_sequence(skb); | 469 | dreq->dreq_iss = dccp_v6_init_sequence(skb); |
469 | dreq->dreq_service = service; | 470 | dreq->dreq_service = service; |
470 | 471 | ||
471 | if (dccp_v6_send_response(sk, req)) | 472 | if (dccp_v6_send_response(sk, req, NULL)) |
472 | goto drop_and_free; | 473 | goto drop_and_free; |
473 | 474 | ||
474 | inet6_csk_reqsk_queue_hash_add(sk, req, DCCP_TIMEOUT_INIT); | 475 | inet6_csk_reqsk_queue_hash_add(sk, req, DCCP_TIMEOUT_INIT); |