14 #include <linux/module.h>
15 #include <linux/random.h>
16 #include <linux/slab.h>
17 #include <linux/string.h>
18 #include <linux/tcp.h>
41 unsigned int nr_table_entries)
47 nr_table_entries =
max_t(
u32, nr_table_entries, 8);
49 lopt_size += nr_table_entries *
sizeof(
struct request_sock *);
93 static inline struct listen_sock *reqsk_queue_yank_listen_sk(
109 struct listen_sock *lopt = reqsk_queue_yank_listen_sk(queue);
113 if (lopt->
qlen != 0) {
185 struct sock *lsk = tcp_rsk(req)->listener;
187 inet_csk(lsk)->icsk_accept_queue.fastopenq;
191 tcp_sk(sk)->fastopen_rsk =
NULL;
192 spin_lock_bh(&fastopenq->
lock);
194 tcp_rsk(req)->listener =
NULL;
202 spin_unlock_bh(&fastopenq->
lock);
224 spin_unlock_bh(&fastopenq->
lock);