Searched refs:lopt (Results 1 – 5 of 5) sorted by relevance
/net/core/ |
D | request_sock.c | 44 struct listen_sock *lopt; in reqsk_queue_alloc() local 51 lopt = vzalloc(lopt_size); in reqsk_queue_alloc() 53 lopt = kzalloc(lopt_size, GFP_KERNEL); in reqsk_queue_alloc() 54 if (lopt == NULL) in reqsk_queue_alloc() 57 for (lopt->max_qlen_log = 3; in reqsk_queue_alloc() 58 (1 << lopt->max_qlen_log) < nr_table_entries; in reqsk_queue_alloc() 59 lopt->max_qlen_log++); in reqsk_queue_alloc() 61 get_random_bytes(&lopt->hash_rnd, sizeof(lopt->hash_rnd)); in reqsk_queue_alloc() 64 lopt->nr_table_entries = nr_table_entries; in reqsk_queue_alloc() 67 queue->listen_opt = lopt; in reqsk_queue_alloc() [all …]
|
/net/ipv4/ |
D | inet_connection_sock.c | 500 struct listen_sock *lopt = icsk->icsk_accept_queue.listen_opt; in inet_csk_search_req() local 503 for (prev = &lopt->syn_table[inet_synq_hash(raddr, rport, lopt->hash_rnd, in inet_csk_search_req() 504 lopt->nr_table_entries)]; in inet_csk_search_req() 527 struct listen_sock *lopt = icsk->icsk_accept_queue.listen_opt; in inet_csk_reqsk_queue_hash_add() local 529 lopt->hash_rnd, lopt->nr_table_entries); in inet_csk_reqsk_queue_hash_add() 579 struct listen_sock *lopt = queue->listen_opt; in inet_csk_reqsk_queue_prune() local 586 if (lopt == NULL || lopt->qlen == 0) in inet_csk_reqsk_queue_prune() 606 if (lopt->qlen>>(lopt->max_qlen_log-1)) { in inet_csk_reqsk_queue_prune() 607 int young = (lopt->qlen_young<<1); in inet_csk_reqsk_queue_prune() 610 if (lopt->qlen < young) in inet_csk_reqsk_queue_prune() [all …]
|
D | inet_diag.c | 870 struct listen_sock *lopt; in inet_diag_dump_reqs() local 886 lopt = icsk->icsk_accept_queue.listen_opt; in inet_diag_dump_reqs() 887 if (!lopt || !lopt->qlen) in inet_diag_dump_reqs() 896 for (j = s_j; j < lopt->nr_table_entries; j++) { in inet_diag_dump_reqs() 897 struct request_sock *req, *head = lopt->syn_table[j]; in inet_diag_dump_reqs()
|
D | tcp_ipv4.c | 901 struct listen_sock *lopt; in tcp_syn_flood_action() local 914 lopt = inet_csk(sk)->icsk_accept_queue.listen_opt; in tcp_syn_flood_action() 915 if (!lopt->synflood_warned) { in tcp_syn_flood_action() 916 lopt->synflood_warned = 1; in tcp_syn_flood_action()
|
/net/ipv6/ |
D | inet6_connection_sock.c | 127 struct listen_sock *lopt = icsk->icsk_accept_queue.listen_opt; in inet6_csk_search_req() local 130 for (prev = &lopt->syn_table[inet6_synq_hash(raddr, rport, in inet6_csk_search_req() 131 lopt->hash_rnd, in inet6_csk_search_req() 132 lopt->nr_table_entries)]; in inet6_csk_search_req() 158 struct listen_sock *lopt = icsk->icsk_accept_queue.listen_opt; in inet6_csk_reqsk_queue_hash_add() local 161 lopt->hash_rnd, lopt->nr_table_entries); in inet6_csk_reqsk_queue_hash_add()
|