summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authordan <dan@FreeBSD.org>2000-05-22 15:00:41 +0000
committerdan <dan@FreeBSD.org>2000-05-22 15:00:41 +0000
commit187df3a0fbe92bcb52f715bf42ea38c9c2034c4b (patch)
tree7ba9302f4c7ef1666c53161acb9306df168fe492 /sys/netinet
parent4a00d6a024a8331ebe9b8886320aa74c21101faf (diff)
downloadFreeBSD-src-187df3a0fbe92bcb52f715bf42ea38c9c2034c4b.zip
FreeBSD-src-187df3a0fbe92bcb52f715bf42ea38c9c2034c4b.tar.gz
Add option ICMP_BANDLIM_SUPPRESS_OUTPUT to the mix. With this option,
badport_bandlim() will not muck up your console with printf() messages.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_icmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index 1b2a14e..a18f875 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -843,10 +843,12 @@ badport_bandlim(int which)
if ((unsigned int)dticks > hz) {
if (lpackets[which] > icmplim) {
+#ifndef ICMP_BANDLIM_SUPPRESS_OUTPUT
printf("icmp-response bandwidth limit %d/%d pps\n",
lpackets[which],
icmplim
);
+#endif
}
lticks[which] = ticks;
lpackets[which] = 0;
OpenPOWER on IntegriCloud