]> err.no Git - linux-2.6/blobdiff - net/netfilter/xt_hashlimit.c
[NETFILTER]: nf_conntrack_expect: convert proc functions to hash
[linux-2.6] / net / netfilter / xt_hashlimit.c
index deb5890aa3ac1a3f5332bdbea44d6a31beaf30c4..5a6ea9b9108c4daa0288a678a3ddd9bfdf2e16b3 100644 (file)
@@ -239,7 +239,7 @@ static bool select_all(const struct xt_hashlimit_htable *ht,
 static bool select_gc(const struct xt_hashlimit_htable *ht,
                      const struct dsthash_ent *he)
 {
-       return (jiffies >= he->expires);
+       return jiffies >= he->expires;
 }
 
 static void htable_selective_cleanup(struct xt_hashlimit_htable *ht,
@@ -578,7 +578,7 @@ static int compat_to_user(void __user *dst, void *src)
 }
 #endif
 
-static struct xt_match xt_hashlimit[] = {
+static struct xt_match xt_hashlimit[] __read_mostly = {
        {
                .name           = "hashlimit",
                .family         = AF_INET,