summaryrefslogtreecommitdiffstats
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorjayanth <jayanth@FreeBSD.org>2000-07-21 23:26:37 +0000
committerjayanth <jayanth@FreeBSD.org>2000-07-21 23:26:37 +0000
commit8c2fae53742ffaf1871be8c56947b9ac306af564 (patch)
tree2f611787ca557e2258deb0760e8546f691acd9c6 /sys/net/route.h
parent9ed7fa2a25f71339ba2c167377581dec855bbbe4 (diff)
downloadFreeBSD-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/net/route.h')
-rw-r--r--sys/net/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index c9c5c3f..c5642a4 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -139,7 +139,7 @@ struct ortentry {
#define RTF_DYNAMIC 0x10 /* created dynamically (by redirect) */
#define RTF_MODIFIED 0x20 /* modified dynamically (by redirect) */
#define RTF_DONE 0x40 /* message confirmed */
-/* 0x80 unused */
+#define RTF_DELCLONE 0x80 /* delete cloned route */
#define RTF_CLONING 0x100 /* generate new routes on use */
#define RTF_XRESOLVE 0x200 /* external daemon resolves name */
#define RTF_LLINFO 0x400 /* generated by link layer (e.g. ARP) */
OpenPOWER on IntegriCloud