diff options
author | 1996-08-07 06:36:26 +0000 | |
---|---|---|
committer | 1996-08-07 06:36:26 +0000 | |
commit | 9331c301a4687bacb4130547942483a39d79f17d (patch) | |
tree | 9e0fc445f2af958055935993a455bd47f7d47ee6 /sys/netinet/tcp_input.c | |
parent | setlogin(username) (diff) | |
download | wireguard-openbsd-9331c301a4687bacb4130547942483a39d79f17d.tar.xz wireguard-openbsd-9331c301a4687bacb4130547942483a39d79f17d.zip |
Partial protection from TCP SYN attacks
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 21f112a7dd8..8b7da3d6e30 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.5 1996/07/29 22:01:50 niklas Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.6 1996/08/07 06:36:26 tholo Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -424,7 +424,8 @@ findpcb: * Reset idle time and keep-alive timer. */ tp->t_idle = 0; - tp->t_timer[TCPT_KEEP] = tcp_keepidle; + if (tp->t_state != TCPS_SYN_RECEIVED) + tp->t_timer[TCPT_KEEP] = tcp_keepidle; /* * Process options if not in LISTEN state, |