diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-04-14 05:15:44 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:15:44 -0400 |
commit | 3bb0362d2f53fa54a17b88c96b43fc093e47699b (patch) | |
tree | 915a373f37785f926b7be99d4bc98c0e4f724a38 /net/ipv4 | |
parent | 95eea855af69bfd54a7b73546190e76046ca2e07 (diff) |
[NETFILTER]: remove arpt_(un)register_target indirection macros
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/arpt_mangle.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c index f9c102ab891b..a385959d2655 100644 --- a/net/ipv4/netfilter/arpt_mangle.c +++ b/net/ipv4/netfilter/arpt_mangle.c | |||
@@ -75,6 +75,7 @@ checkentry(const char *tablename, const void *e, const struct xt_target *target, | |||
75 | 75 | ||
76 | static struct xt_target arpt_mangle_reg __read_mostly = { | 76 | static struct xt_target arpt_mangle_reg __read_mostly = { |
77 | .name = "mangle", | 77 | .name = "mangle", |
78 | .family = NF_ARP, | ||
78 | .target = target, | 79 | .target = target, |
79 | .targetsize = sizeof(struct arpt_mangle), | 80 | .targetsize = sizeof(struct arpt_mangle), |
80 | .checkentry = checkentry, | 81 | .checkentry = checkentry, |
@@ -83,15 +84,12 @@ static struct xt_target arpt_mangle_reg __read_mostly = { | |||
83 | 84 | ||
84 | static int __init arpt_mangle_init(void) | 85 | static int __init arpt_mangle_init(void) |
85 | { | 86 | { |
86 | if (arpt_register_target(&arpt_mangle_reg)) | 87 | return xt_register_target(&arpt_mangle_reg); |
87 | return -EINVAL; | ||
88 | |||
89 | return 0; | ||
90 | } | 88 | } |
91 | 89 | ||
92 | static void __exit arpt_mangle_fini(void) | 90 | static void __exit arpt_mangle_fini(void) |
93 | { | 91 | { |
94 | arpt_unregister_target(&arpt_mangle_reg); | 92 | xt_unregister_target(&arpt_mangle_reg); |
95 | } | 93 | } |
96 | 94 | ||
97 | module_init(arpt_mangle_init); | 95 | module_init(arpt_mangle_init); |