]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/xt_dccp.c
Merge branch 'upstream'
[linux-2.6-omap-h63xx.git] / net / netfilter / xt_dccp.c
index db6b70cdc7708c3c2afd192ff4163ed09564f6a3..2f331decd151fb6bef15a94ce9d7e1db94f26859 100644 (file)
@@ -149,6 +149,7 @@ static struct xt_match dccp_match =
        .matchsize      = sizeof(struct xt_dccp_info),
        .proto          = IPPROTO_DCCP,
        .checkentry     = checkentry,
+       .family         = AF_INET,
        .me             = THIS_MODULE,
 };
 static struct xt_match dccp6_match = 
@@ -158,6 +159,7 @@ static struct xt_match dccp6_match =
        .matchsize      = sizeof(struct xt_dccp_info),
        .proto          = IPPROTO_DCCP,
        .checkentry     = checkentry,
+       .family         = AF_INET6,
        .me             = THIS_MODULE,
 };
 
@@ -172,17 +174,17 @@ static int __init init(void)
        dccp_optbuf = kmalloc(256 * 4, GFP_KERNEL);
        if (!dccp_optbuf)
                return -ENOMEM;
-       ret = xt_register_match(AF_INET, &dccp_match);
+       ret = xt_register_match(&dccp_match);
        if (ret)
                goto out_kfree;
-       ret = xt_register_match(AF_INET6, &dccp6_match);
+       ret = xt_register_match(&dccp6_match);
        if (ret)
                goto out_unreg;
 
        return ret;
 
 out_unreg:
-       xt_unregister_match(AF_INET, &dccp_match);
+       xt_unregister_match(&dccp_match);
 out_kfree:
        kfree(dccp_optbuf);
 
@@ -191,8 +193,8 @@ out_kfree:
 
 static void __exit fini(void)
 {
-       xt_unregister_match(AF_INET6, &dccp6_match);
-       xt_unregister_match(AF_INET, &dccp_match);
+       xt_unregister_match(&dccp6_match);
+       xt_unregister_match(&dccp_match);
        kfree(dccp_optbuf);
 }