summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick McHardy2006-08-22 09:33:45 +0200
committerDavid S. Miller2006-09-22 23:55:31 +0200
commit52d9c42ef2563d2c420eb23b96bf5a4cae9e167b (patch)
tree003022136c43ea48a2d5dcde5c06c261b1705e86 /include/linux
parent[NETFILTER]: xt_CONNMARK: use tabs for indentation (diff)
downloadkernel-qcow2-linux-52d9c42ef2563d2c420eb23b96bf5a4cae9e167b.tar.gz
kernel-qcow2-linux-52d9c42ef2563d2c420eb23b96bf5a4cae9e167b.tar.xz
kernel-qcow2-linux-52d9c42ef2563d2c420eb23b96bf5a4cae9e167b.zip
[NETFILTER]: x_tables: add helpers for mass match/target registration
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/x_tables.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 48cc32d83f77..9a9912430e3a 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -290,8 +290,13 @@ struct xt_table_info
extern int xt_register_target(struct xt_target *target);
extern void xt_unregister_target(struct xt_target *target);
+extern int xt_register_targets(struct xt_target *target, unsigned int n);
+extern void xt_unregister_targets(struct xt_target *target, unsigned int n);
+
extern int xt_register_match(struct xt_match *target);
extern void xt_unregister_match(struct xt_match *target);
+extern int xt_register_matches(struct xt_match *match, unsigned int n);
+extern void xt_unregister_matches(struct xt_match *match, unsigned int n);
extern int xt_check_match(const struct xt_match *match, unsigned short family,
unsigned int size, const char *table, unsigned int hook,