Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90690
b: refs/heads/master
c: 3bb0362
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and Patrick McHardy committed Apr 14, 2008
1 parent 7d3ade2 commit 763cb9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 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: 95eea855af69bfd54a7b73546190e76046ca2e07
refs/heads/master: 3bb0362d2f53fa54a17b88c96b43fc093e47699b
5 changes: 0 additions & 5 deletions trunk/include/linux/netfilter_arp/arp_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,6 @@ struct arpt_error
.target.errorname = "ERROR", \
}

#define arpt_register_target(tgt) \
({ (tgt)->family = NF_ARP; \
xt_register_target(tgt); })
#define arpt_unregister_target(tgt) xt_unregister_target(tgt)

extern struct xt_table *arpt_register_table(struct net *net,
struct xt_table *table,
const struct arpt_replace *repl);
Expand Down
8 changes: 3 additions & 5 deletions trunk/net/ipv4/netfilter/arpt_mangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ checkentry(const char *tablename, const void *e, const struct xt_target *target,

static struct xt_target arpt_mangle_reg __read_mostly = {
.name = "mangle",
.family = NF_ARP,
.target = target,
.targetsize = sizeof(struct arpt_mangle),
.checkentry = checkentry,
Expand All @@ -83,15 +84,12 @@ static struct xt_target arpt_mangle_reg __read_mostly = {

static int __init arpt_mangle_init(void)
{
if (arpt_register_target(&arpt_mangle_reg))
return -EINVAL;

return 0;
return xt_register_target(&arpt_mangle_reg);
}

static void __exit arpt_mangle_fini(void)
{
arpt_unregister_target(&arpt_mangle_reg);
xt_unregister_target(&arpt_mangle_reg);
}

module_init(arpt_mangle_init);
Expand Down

0 comments on commit 763cb9f

Please sign in to comment.