Re: [PATCH] ipt_recent fixes
From: Patrick McHardy
Date: Sun Jun 12 2005 - 09:49:24 EST
Juergen Kreileder wrote:
> I've had some ipt_recent rules acting strangely after an uptime of
> about 25 days. The broken behavior is reproducible in the 5 minutes
> before the first jiffies roll-over right after booting too.
>
> The cause of the problem is the jiffies comparision which doesn't work
> like intended if one of the last hits was more than LONG_MAX seconds
> ago or if the table of last hits contains empty slots and jiffies
> is > LONG_MAX.
>
> This patch fixes the problem by using get_seconds() instead of
> jiffies. It also fixes some 64-bit issues.
Thanks, I've added it to my 2.6.13 tree.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/