X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fnetfilter%2Fip6table_filter.c;h=4c0028671c20f0987c79747532ef5f4b14d87997;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=46daa79051d1709e3ee37ad612a3188ebe3c4e27;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/net/ipv6/netfilter/ip6table_filter.c b/net/ipv6/netfilter/ip6table_filter.c index 46daa7905..4c0028671 100644 --- a/net/ipv6/netfilter/ip6table_filter.c +++ b/net/ipv6/netfilter/ip6table_filter.c @@ -10,6 +10,7 @@ */ #include +#include #include MODULE_LICENSE("GPL"); @@ -93,7 +94,6 @@ static struct static struct ip6t_table packet_filter = { .name = "filter", - .table = &initial_table.repl, .valid_hooks = FILTER_VALID_HOOKS, .lock = RW_LOCK_UNLOCKED, .me = THIS_MODULE, @@ -156,7 +156,7 @@ static struct nf_hook_ops ip6t_ops[] = { /* Default to forward because I got too much mail already. */ static int forward = NF_ACCEPT; -MODULE_PARM(forward, "i"); +module_param(forward, bool, 0000); static int __init init(void) { @@ -171,7 +171,7 @@ static int __init init(void) initial_table.entries[1].target.verdict = -forward - 1; /* Register table */ - ret = ip6t_register_table(&packet_filter); + ret = ip6t_register_table(&packet_filter, &initial_table.repl); if (ret < 0) return ret;