X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fnetfilter%2Fip6t_limit.c;h=fb782f610be202987077063b9aa1294ea7a2d506;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=4780c3a9a9db6c9640c5336c4d215e5d148f782a;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ipv6/netfilter/ip6t_limit.c b/net/ipv6/netfilter/ip6t_limit.c index 4780c3a9a..fb782f610 100644 --- a/net/ipv6/netfilter/ip6t_limit.c +++ b/net/ipv6/netfilter/ip6t_limit.c @@ -29,7 +29,7 @@ MODULE_DESCRIPTION("rate limiting within ip6tables"); * see net/sched/sch_tbf.c in the linux source tree */ -static spinlock_t limit_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(limit_lock); /* Rusty: This is my (non-mathematically-inclined) understanding of this algorithm. The `average rate' in jiffies becomes your initial @@ -57,8 +57,7 @@ ip6t_limit_match(const struct sk_buff *skb, const struct net_device *out, const void *matchinfo, int offset, - const void *hdr, - u_int16_t datalen, + unsigned int protoff, int *hotdrop) { struct ip6t_rateinfo *r = ((struct ip6t_rateinfo *)matchinfo)->master;