Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet do not disable icmp error rate limitation for lo...
details: https://anonhg.NetBSD.org/src/rev/cd296f009d24
branches: trunk
changeset: 495390:cd296f009d24
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jul 27 11:36:14 2000 +0000
description:
do not disable icmp error rate limitation for local address.
local address can be abused too. pps rate limitation should work fine for
moderate amount of icmp errors.
diffstat:
sys/netinet/ip_icmp.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diffs (25 lines):
diff -r fc73575af0cb -r cd296f009d24 sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c Thu Jul 27 11:34:06 2000 +0000
+++ b/sys/netinet/ip_icmp.c Thu Jul 27 11:36:14 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_icmp.c,v 1.52 2000/07/24 03:32:31 sommerfeld Exp $ */
+/* $NetBSD: ip_icmp.c,v 1.53 2000/07/27 11:36:14 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1042,15 +1042,7 @@
const int code; /* not used at this moment */
{
static struct timeval icmperrratelim_last;
- struct in_ifaddr *ia;
- /*
- * Don't rate-limit if it's for us!
- */
- INADDR_TO_IA(*dst, ia);
- if (ia != NULL)
- return 0;
-
/* PPS limit */
if (!ppsratecheck(&icmperrppslim_last, &icmperrpps_count,
icmperrppslim)) {
Home |
Main Index |
Thread Index |
Old Index