diff options
author | jayanth <jayanth@FreeBSD.org> | 2000-07-21 23:26:37 +0000 |
---|---|---|
committer | jayanth <jayanth@FreeBSD.org> | 2000-07-21 23:26:37 +0000 |
commit | 8c2fae53742ffaf1871be8c56947b9ac306af564 (patch) | |
tree | 2f611787ca557e2258deb0760e8546f691acd9c6 /sys/netinet/tcp_var.h | |
parent | 9ed7fa2a25f71339ba2c167377581dec855bbbe4 (diff) | |
download | FreeBSD-src-8c2fae53742ffaf1871be8c56947b9ac306af564.zip FreeBSD-src-8c2fae53742ffaf1871be8c56947b9ac306af564.tar.gz |
When a connection is being dropped due to a listen queue overflow,
delete the cloned route that is associated with the connection.
This does not exhaust the routing table memory when the system
is under a SYN flood attack. The route entry is not deleted if there
is any prior information cached in it.
Reviewed by: Peter Wemm,asmodai
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index eb2c9b1..af18c09 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -94,6 +94,7 @@ struct tcpcb { #define TF_RCVD_CC 0x04000 /* a CC was received in SYN */ #define TF_SENDCCNEW 0x08000 /* send CCnew instead of CC in SYN */ #define TF_MORETOCOME 0x10000 /* More data to be appended to sock */ +#define TF_LQ_OVERFLOW 0x20000 /* listen queue overflow */ int t_force; /* 1 if forcing out a byte */ tcp_seq snd_una; /* send unacknowledged */ |