mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
inet: makes syn_ack_timeout mandatory
There are two struct request_sock_ops providers, tcp and dccp. inet_csk_reqsk_queue_prune() can avoid testing syn_ack_timeout being NULL if we make it non NULL like syn_ack_timeout Signed-off-by: Eric Dumazet <[email protected]> Cc: Gerrit Renker <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
fd4f2cead6
commit
c72e118334
4 changed files with 10 additions and 2 deletions
|
|
@ -574,6 +574,11 @@ static void dccp_v4_reqsk_destructor(struct request_sock *req)
|
|||
kfree(inet_rsk(req)->opt);
|
||||
}
|
||||
|
||||
void dccp_syn_ack_timeout(struct sock *sk, struct request_sock *req)
|
||||
{
|
||||
}
|
||||
EXPORT_SYMBOL(dccp_syn_ack_timeout);
|
||||
|
||||
static struct request_sock_ops dccp_request_sock_ops __read_mostly = {
|
||||
.family = PF_INET,
|
||||
.obj_size = sizeof(struct dccp_request_sock),
|
||||
|
|
@ -581,6 +586,7 @@ static struct request_sock_ops dccp_request_sock_ops __read_mostly = {
|
|||
.send_ack = dccp_reqsk_send_ack,
|
||||
.destructor = dccp_v4_reqsk_destructor,
|
||||
.send_reset = dccp_v4_ctl_send_reset,
|
||||
.syn_ack_timeout = dccp_syn_ack_timeout,
|
||||
};
|
||||
|
||||
int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
|
||||
|
|
|
|||
|
|
@ -343,6 +343,7 @@ static struct request_sock_ops dccp6_request_sock_ops = {
|
|||
.send_ack = dccp_reqsk_send_ack,
|
||||
.destructor = dccp_v6_reqsk_destructor,
|
||||
.send_reset = dccp_v6_ctl_send_reset,
|
||||
.syn_ack_timeout = dccp_syn_ack_timeout,
|
||||
};
|
||||
|
||||
static struct sock *dccp_v6_hnd_req(struct sock *sk,struct sk_buff *skb)
|
||||
|
|
|
|||
Loading…
Reference in a new issue