aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 22ef8bd26620..5fbf96552cac 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -715,7 +715,7 @@ static struct ip_options *tcp_v4_save_options(struct sock *sk,
715 return dopt; 715 return dopt;
716} 716}
717 717
718struct request_sock_ops tcp_request_sock_ops = { 718struct request_sock_ops tcp_request_sock_ops __read_mostly = {
719 .family = PF_INET, 719 .family = PF_INET,
720 .obj_size = sizeof(struct tcp_request_sock), 720 .obj_size = sizeof(struct tcp_request_sock),
721 .rtx_syn_ack = tcp_v4_send_synack, 721 .rtx_syn_ack = tcp_v4_send_synack,
@@ -1385,7 +1385,7 @@ static void *listening_get_next(struct seq_file *seq, void *cur)
1385 if (st->state == TCP_SEQ_STATE_OPENREQ) { 1385 if (st->state == TCP_SEQ_STATE_OPENREQ) {
1386 struct request_sock *req = cur; 1386 struct request_sock *req = cur;
1387 1387
1388 icsk = inet_csk(st->syn_wait_sk); 1388 icsk = inet_csk(st->syn_wait_sk);
1389 req = req->dl_next; 1389 req = req->dl_next;
1390 while (1) { 1390 while (1) {
1391 while (req) { 1391 while (req) {
@@ -1395,7 +1395,7 @@ static void *listening_get_next(struct seq_file *seq, void *cur)
1395 } 1395 }
1396 req = req->dl_next; 1396 req = req->dl_next;
1397 } 1397 }
1398 if (++st->sbucket >= TCP_SYNQ_HSIZE) 1398 if (++st->sbucket >= icsk->icsk_accept_queue.listen_opt->nr_table_entries)
1399 break; 1399 break;
1400get_req: 1400get_req:
1401 req = icsk->icsk_accept_queue.listen_opt->syn_table[st->sbucket]; 1401 req = icsk->icsk_accept_queue.listen_opt->syn_table[st->sbucket];