summaryrefslogtreecommitdiffstats
path: root/net/ipv4/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/utils.c')
-rw-r--r--net/ipv4/utils.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/net/ipv4/utils.c b/net/ipv4/utils.c
index 0f463d0ee..3e638d6c8 100644
--- a/net/ipv4/utils.c
+++ b/net/ipv4/utils.c
@@ -6,7 +6,7 @@
* Various kernel-resident INET utility functions; mainly
* for format conversion and debugging output.
*
- * Version: $Id: utils.c,v 1.5 1997/09/17 18:50:31 freitag Exp $
+ * Version: $Id: utils.c,v 1.3 1997/12/16 05:37:49 ralf Exp $
*
* Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
*
@@ -89,24 +89,3 @@ __u32 in_aton(const char *str)
return(htonl(l));
}
-/*
- * This enforces a rate limit: not more than one kernel message
- * every 5secs to make a denial-of-service attack impossible.
- *
- * All warning printk()s should be guarded by this function.
- */
-int net_ratelimit(void)
-{
- static unsigned long last_msg;
- static int missed;
-
- if ((jiffies - last_msg) >= 5*HZ) {
- if (missed)
- printk(KERN_WARNING "ipv4: (%d messages suppressed. Flood?)\n", missed);
- missed = 0;
- last_msg = jiffies;
- return 1;
- }
- missed++;
- return 0;
-}