diff options
| author | Jan Engelhardt <jengelh@gmx.de> | 2007-02-07 18:11:19 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-08 15:39:19 -0500 |
| commit | 6709dbbb1978abe039ea4b76c364bf003bf40de5 (patch) | |
| tree | fd0349415e398f9bc984461974a64c7024035356 /include/linux | |
| parent | e1fd0586b04d624c597834320d9e57d6f2f4b878 (diff) | |
[NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions
Use the x_tables functions directly to make it better visible which
parts are shared between ip_tables and ip6_tables.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
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 | 12 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv6/ip6_tables.h | 10 |
2 files changed, 1 insertions, 21 deletions
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h index 98d566c5e32a..c59bc6ff2280 100644 --- a/include/linux/netfilter_ipv4/ip_tables.h +++ b/include/linux/netfilter_ipv4/ip_tables.h | |||
| @@ -272,16 +272,6 @@ ipt_get_target(struct ipt_entry *e) | |||
| 272 | #include <linux/init.h> | 272 | #include <linux/init.h> |
| 273 | extern void ipt_init(void) __init; | 273 | extern void ipt_init(void) __init; |
| 274 | 274 | ||
| 275 | #define ipt_register_target(tgt) \ | ||
| 276 | ({ (tgt)->family = AF_INET; \ | ||
| 277 | xt_register_target(tgt); }) | ||
| 278 | #define ipt_unregister_target(tgt) xt_unregister_target(tgt) | ||
| 279 | |||
| 280 | #define ipt_register_match(mtch) \ | ||
| 281 | ({ (mtch)->family = AF_INET; \ | ||
| 282 | xt_register_match(mtch); }) | ||
| 283 | #define ipt_unregister_match(mtch) xt_unregister_match(mtch) | ||
| 284 | |||
| 285 | //#define ipt_register_table(tbl, repl) xt_register_table(AF_INET, tbl, repl) | 275 | //#define ipt_register_table(tbl, repl) xt_register_table(AF_INET, tbl, repl) |
| 286 | //#define ipt_unregister_table(tbl) xt_unregister_table(AF_INET, tbl) | 276 | //#define ipt_unregister_table(tbl) xt_unregister_table(AF_INET, tbl) |
| 287 | 277 | ||
| @@ -290,7 +280,7 @@ extern int ipt_register_table(struct ipt_table *table, | |||
| 290 | extern void ipt_unregister_table(struct ipt_table *table); | 280 | extern void ipt_unregister_table(struct ipt_table *table); |
| 291 | 281 | ||
| 292 | /* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ | 282 | /* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ |
| 293 | extern struct ipt_target *ipt_find_target(const char *name, u8 revision); | 283 | extern struct xt_target *ipt_find_target(const char *name, u8 revision); |
| 294 | 284 | ||
| 295 | /* Standard entry. */ | 285 | /* Standard entry. */ |
| 296 | struct ipt_standard | 286 | struct ipt_standard |
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h index 4aed340401db..2fbabab30d21 100644 --- a/include/linux/netfilter_ipv6/ip6_tables.h +++ b/include/linux/netfilter_ipv6/ip6_tables.h | |||
| @@ -286,16 +286,6 @@ ip6t_get_target(struct ip6t_entry *e) | |||
| 286 | #include <linux/init.h> | 286 | #include <linux/init.h> |
| 287 | extern void ip6t_init(void) __init; | 287 | extern void ip6t_init(void) __init; |
| 288 | 288 | ||
| 289 | #define ip6t_register_target(tgt) \ | ||
| 290 | ({ (tgt)->family = AF_INET6; \ | ||
| 291 | xt_register_target(tgt); }) | ||
| 292 | #define ip6t_unregister_target(tgt) xt_unregister_target(tgt) | ||
| 293 | |||
| 294 | #define ip6t_register_match(match) \ | ||
| 295 | ({ (match)->family = AF_INET6; \ | ||
| 296 | xt_register_match(match); }) | ||
| 297 | #define ip6t_unregister_match(match) xt_unregister_match(match) | ||
| 298 | |||
| 299 | extern int ip6t_register_table(struct ip6t_table *table, | 289 | extern int ip6t_register_table(struct ip6t_table *table, |
| 300 | const struct ip6t_replace *repl); | 290 | const struct ip6t_replace *repl); |
| 301 | extern void ip6t_unregister_table(struct ip6t_table *table); | 291 | extern void ip6t_unregister_table(struct ip6t_table *table); |
