aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-10-14 06:16:49 -0700
committerDavid S. Miller <davem@davemloft.net>2015-10-14 19:06:32 -0700
commitf985c65c908f6b26c30019a83dc5ea295f5fcf62 (patch)
treef16e00e81bc17fdf6b257b38a85c048d34faf692 /include/net/inet_connection_sock.h
parenttcp/dccp: fix potential NULL deref in __inet_inherit_port() (diff)
downloadlinux-dev-f985c65c908f6b26c30019a83dc5ea295f5fcf62.tar.xz
linux-dev-f985c65c908f6b26c30019a83dc5ea295f5fcf62.zip
tcp: avoid spurious SYN flood detection at listen() time
At listen() time, there is a small window where listener is visible with a zero backlog, triggering a spurious "Possible SYN flooding on port" message. Nothing prevents us from setting the correct backlog. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r--include/net/inet_connection_sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 3208a65d1c28..fd645c49e71e 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -312,7 +312,7 @@ static inline unsigned int inet_csk_listen_poll(const struct sock *sk)
(POLLIN | POLLRDNORM) : 0;
}
-int inet_csk_listen_start(struct sock *sk, const int nr_table_entries);
+int inet_csk_listen_start(struct sock *sk, int backlog);
void inet_csk_listen_stop(struct sock *sk);
void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr);