]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/netfilter/nf_nat_rule.c
netfilter: xtables: mark initial tables constant
[net-next-2.6.git] / net / ipv4 / netfilter / nf_nat_rule.c
index 6348a793936e9e0d8df6f98232c7cc7930860b44..9e81e0dfb4ec45534faf3808b964e404e2850952 100644 (file)
@@ -28,7 +28,7 @@
                         (1 << NF_INET_POST_ROUTING) | \
                         (1 << NF_INET_LOCAL_OUT))
 
-static struct
+static const struct
 {
        struct ipt_replace repl;
        struct ipt_standard entries[3];
@@ -58,11 +58,11 @@ static struct
        .term = IPT_ERROR_INIT,                 /* ERROR */
 };
 
-static struct xt_table nat_table = {
+static const struct xt_table nat_table = {
        .name           = "nat",
        .valid_hooks    = NAT_VALID_HOOKS,
        .me             = THIS_MODULE,
-       .af             = AF_INET,
+       .af             = NFPROTO_IPV4,
 };
 
 /* Source NAT */