diff options
author | dan <dan@FreeBSD.org> | 2000-05-22 16:12:28 +0000 |
---|---|---|
committer | dan <dan@FreeBSD.org> | 2000-05-22 16:12:28 +0000 |
commit | 4e9d022872d5646eddc9a6321d0b7ca70f61bb2b (patch) | |
tree | 52f3bc1da8b4ed9e997cf9ce7c7f5e9e4a62cd4c /sys/netinet/tcp_input.c | |
parent | 187df3a0fbe92bcb52f715bf42ea38c9c2034c4b (diff) | |
download | FreeBSD-src-4e9d022872d5646eddc9a6321d0b7ca70f61bb2b.zip FreeBSD-src-4e9d022872d5646eddc9a6321d0b7ca70f61bb2b.tar.gz |
sysctl'ize ICMP_BANDLIM and ICMP_BANDLIM_SUPPRESS_OUTPUT.
Suggested by: des/nbm
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 49ceba6..28fb89e 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -60,7 +60,7 @@ #include <netinet/in.h> #include <netinet/in_systm.h> #include <netinet/ip.h> -#include <netinet/ip_icmp.h> /* for ICMP_BANDLIM */ +#include <netinet/ip_icmp.h> #ifdef INET6 #include <netinet/ip6.h> #include <netinet/in_var.h> @@ -75,7 +75,7 @@ #ifdef INET6 #include <netinet6/ip6_var.h> #endif -#include <netinet/icmp_var.h> /* for ICMP_BANDLIM */ +#include <netinet/icmp_var.h> #include <netinet/tcp.h> #include <netinet/tcp_fsm.h> #include <netinet/tcp_seq.h> @@ -2251,10 +2251,8 @@ dropafterack: * we think we are under attack or not. */ maybedropwithreset: -#ifdef ICMP_BANDLIM if (badport_bandlim(1) < 0) goto drop; -#endif /* fall through */ dropwithreset: #ifdef TCP_RESTRICT_RST |