diff options
author | Jan Engelhardt <jengelh@gmx.de> | 2007-02-07 18:12:33 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-08 15:39:20 -0500 |
commit | e60a13e030867078f3c9fef8dca6cd8a5b883478 (patch) | |
tree | 773c26ade3f4d3f88fb83cc8044d35cbe0a01cbe /include/linux | |
parent | 6709dbbb1978abe039ea4b76c364bf003bf40de5 (diff) |
[NETFILTER]: {ip,ip6}_tables: use struct xt_table instead of redefined structure names
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 | 9 | ||||
-rw-r--r-- | include/linux/netfilter_ipv6/ip6_tables.h | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h index c59bc6ff2280..fccf4b873232 100644 --- a/include/linux/netfilter_ipv4/ip_tables.h +++ b/include/linux/netfilter_ipv4/ip_tables.h | |||
@@ -272,12 +272,9 @@ 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_table(tbl, repl) xt_register_table(AF_INET, tbl, repl) | 275 | extern int ipt_register_table(struct xt_table *table, |
276 | //#define ipt_unregister_table(tbl) xt_unregister_table(AF_INET, tbl) | ||
277 | |||
278 | extern int ipt_register_table(struct ipt_table *table, | ||
279 | const struct ipt_replace *repl); | 276 | const struct ipt_replace *repl); |
280 | extern void ipt_unregister_table(struct ipt_table *table); | 277 | extern void ipt_unregister_table(struct xt_table *table); |
281 | 278 | ||
282 | /* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ | 279 | /* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ |
283 | extern struct xt_target *ipt_find_target(const char *name, u8 revision); | 280 | extern struct xt_target *ipt_find_target(const char *name, u8 revision); |
@@ -305,7 +302,7 @@ extern unsigned int ipt_do_table(struct sk_buff **pskb, | |||
305 | unsigned int hook, | 302 | unsigned int hook, |
306 | const struct net_device *in, | 303 | const struct net_device *in, |
307 | const struct net_device *out, | 304 | const struct net_device *out, |
308 | struct ipt_table *table); | 305 | struct xt_table *table); |
309 | 306 | ||
310 | #define IPT_ALIGN(s) XT_ALIGN(s) | 307 | #define IPT_ALIGN(s) XT_ALIGN(s) |
311 | 308 | ||
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h index 2fbabab30d21..e37698c337ad 100644 --- a/include/linux/netfilter_ipv6/ip6_tables.h +++ b/include/linux/netfilter_ipv6/ip6_tables.h | |||
@@ -286,14 +286,14 @@ 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 | extern int ip6t_register_table(struct ip6t_table *table, | 289 | extern int ip6t_register_table(struct xt_table *table, |
290 | const struct ip6t_replace *repl); | 290 | const struct ip6t_replace *repl); |
291 | extern void ip6t_unregister_table(struct ip6t_table *table); | 291 | extern void ip6t_unregister_table(struct xt_table *table); |
292 | extern unsigned int ip6t_do_table(struct sk_buff **pskb, | 292 | extern unsigned int ip6t_do_table(struct sk_buff **pskb, |
293 | unsigned int hook, | 293 | unsigned int hook, |
294 | const struct net_device *in, | 294 | const struct net_device *in, |
295 | const struct net_device *out, | 295 | const struct net_device *out, |
296 | struct ip6t_table *table); | 296 | struct xt_table *table); |
297 | 297 | ||
298 | /* Check for an extension */ | 298 | /* Check for an extension */ |
299 | extern int ip6t_ext_hdr(u8 nexthdr); | 299 | extern int ip6t_ext_hdr(u8 nexthdr); |