diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2005-01-09 21:37:02 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2005-01-09 21:37:02 -0800 |
| commit | e5e61a2736b2ba2ff7fdf75d65afd2cf7d31609c (patch) | |
| tree | 9850be52e3ef8160e7c02df6abec95f351dc8e7d /include/linux | |
| parent | 5aae0d22660433255765dc9b22ed6ae185361825 (diff) | |
[PKT_SCHED]: Restore net/sched/ipt.c After iptables Kmod Cleanup
Thomas Graf points out that I broke net/sched/ipt.c when I removed
__ipt_find_target_lock. In fact, those routines don't need to keep
the lock held, so we can simplify them, and expose an interface
(ipt_find_target) which does module loading correctly for
net/sched/ipt.c.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter_ipv4/ip_tables.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h index a50174ab3440..f1e6f2691757 100644 --- a/include/linux/netfilter_ipv4/ip_tables.h +++ b/include/linux/netfilter_ipv4/ip_tables.h @@ -456,6 +456,9 @@ struct ipt_table struct module *me; }; +/* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ +extern struct ipt_target *ipt_find_target(const char *name, u8 revision); + extern int ipt_register_table(struct ipt_table *table); extern void ipt_unregister_table(struct ipt_table *table); extern unsigned int ipt_do_table(struct sk_buff **pskb, |
