Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194938
b: refs/heads/master
c: b446728
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt committed Mar 25, 2010
1 parent c68d4ce commit beb6c8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d879e19e18ebc69fc20a9b95612e9dd0acf4d7aa
refs/heads/master: b44672889c11e13e4f4dc0a8ee23f0e64f1e57c6
31 changes: 10 additions & 21 deletions trunk/net/netfilter/xt_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,24 @@ static void state_mt_destroy(const struct xt_mtdtor_param *par)
nf_ct_l3proto_module_put(par->family);
}

static struct xt_match state_mt_reg[] __read_mostly = {
{
.name = "state",
.family = NFPROTO_IPV4,
.checkentry = state_mt_check,
.match = state_mt,
.destroy = state_mt_destroy,
.matchsize = sizeof(struct xt_state_info),
.me = THIS_MODULE,
},
{
.name = "state",
.family = NFPROTO_IPV6,
.checkentry = state_mt_check,
.match = state_mt,
.destroy = state_mt_destroy,
.matchsize = sizeof(struct xt_state_info),
.me = THIS_MODULE,
},
static struct xt_match state_mt_reg __read_mostly = {
.name = "state",
.family = NFPROTO_UNSPEC,
.checkentry = state_mt_check,
.match = state_mt,
.destroy = state_mt_destroy,
.matchsize = sizeof(struct xt_state_info),
.me = THIS_MODULE,
};

static int __init state_mt_init(void)
{
return xt_register_matches(state_mt_reg, ARRAY_SIZE(state_mt_reg));
return xt_register_match(&state_mt_reg);
}

static void __exit state_mt_exit(void)
{
xt_unregister_matches(state_mt_reg, ARRAY_SIZE(state_mt_reg));
xt_unregister_match(&state_mt_reg);
}

module_init(state_mt_init);
Expand Down

0 comments on commit beb6c8e

Please sign in to comment.