diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /net/ipv4/utils.c | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'net/ipv4/utils.c')
-rw-r--r-- | net/ipv4/utils.c | 23 |
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; -} |