[NETFILTER]: x_tables: set the protocol family in x_tables targets/matches
[safe/jmp/linux-2.6] / net / netfilter / xt_realm.c
index 57815a0..5e31a4a 100644 (file)
@@ -45,17 +45,18 @@ static struct xt_match realm_match = {
        .matchsize      = sizeof(struct xt_realm_info),
        .hooks          = (1 << NF_IP_POST_ROUTING) | (1 << NF_IP_FORWARD) |
                          (1 << NF_IP_LOCAL_OUT) | (1 << NF_IP_LOCAL_IN),
+       .family         = AF_INET,
        .me             = THIS_MODULE
 };
 
 static int __init init(void)
 {
-       return xt_register_match(AF_INET, &realm_match);
+       return xt_register_match(&realm_match);
 }
 
 static void __exit fini(void)
 {
-       xt_unregister_match(AF_INET, &realm_match);
+       xt_unregister_match(&realm_match);
 }
 
 module_init(init);