]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/xt_comment.c
[NETFILTER]: statistic match: add missing Kconfig help text
[linux-2.6-omap-h63xx.git] / net / netfilter / xt_comment.c
index 03d9d741231c6881b9e0be81bd5aceb85971b9a6..197609cb06d7e6cb6249d291aeb06abc00abec75 100644 (file)
@@ -33,6 +33,7 @@ static struct xt_match comment_match = {
        .name           = "comment",
        .match          = match,
        .matchsize      = sizeof(struct xt_comment_info),
+       .family         = AF_INET,
        .me             = THIS_MODULE
 };
 
@@ -40,29 +41,30 @@ static struct xt_match comment6_match = {
        .name           = "comment",
        .match          = match,
        .matchsize      = sizeof(struct xt_comment_info),
+       .family         = AF_INET6,
        .me             = THIS_MODULE
 };
 
-static int __init init(void)
+static int __init xt_comment_init(void)
 {
        int ret;
 
-       ret = xt_register_match(AF_INET, &comment_match);
+       ret = xt_register_match(&comment_match);
        if (ret)
                return ret;
 
-       ret = xt_register_match(AF_INET6, &comment6_match);
+       ret = xt_register_match(&comment6_match);
        if (ret)
-               xt_unregister_match(AF_INET, &comment_match);
+               xt_unregister_match(&comment_match);
 
        return ret;
 }
 
-static void __exit fini(void)
+static void __exit xt_comment_fini(void)
 {
-       xt_unregister_match(AF_INET, &comment_match);
-       xt_unregister_match(AF_INET6, &comment6_match);
+       xt_unregister_match(&comment_match);
+       xt_unregister_match(&comment6_match);
 }
 
-module_init(init);
-module_exit(fini);
+module_init(xt_comment_init);
+module_exit(xt_comment_fini);