summaryrefslogtreecommitdiffhomepage
path: root/contrib/fwd/src/fwd_xtables.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-17 01:31:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-17 01:31:13 +0000
commitba9cae9b9083ea6b4d1fe3d9431ceabdbea5479f (patch)
treefba99fb0e1edeb4f5464f37f504208c577e4a036 /contrib/fwd/src/fwd_xtables.h
parent47f94ba62cc7e062910446818281a8500f62ac03 (diff)
contrib/fwd: add fwd_xt_parse_frag(), fwd_xt_append_rule() and fwd_xt_insert_rule() - completes xtables api
Diffstat (limited to 'contrib/fwd/src/fwd_xtables.h')
-rw-r--r--contrib/fwd/src/fwd_xtables.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/fwd/src/fwd_xtables.h b/contrib/fwd/src/fwd_xtables.h
index f894b47e42..45b638a058 100644
--- a/contrib/fwd/src/fwd_xtables.h
+++ b/contrib/fwd/src/fwd_xtables.h
@@ -54,6 +54,7 @@ void fwd_xt_parse_in(struct fwd_xt_rule *r, struct fwd_network_list *n, int inv)
void fwd_xt_parse_out(struct fwd_xt_rule *r, struct fwd_network_list *n, int inv);
void fwd_xt_parse_src(struct fwd_xt_rule *r, struct fwd_cidr *c, int inv);
void fwd_xt_parse_dest(struct fwd_xt_rule *r, struct fwd_cidr *c, int inv);
+void fwd_xt_parse_frag(struct fwd_xt_rule *r, int frag, int inv);
struct xtables_match * fwd_xt_get_match(struct fwd_xt_rule *r, const char *name);
void __fwd_xt_parse_match(struct fwd_xt_rule *r, struct xtables_match *m, ...);
@@ -63,6 +64,7 @@ struct xtables_target * fwd_xt_get_target(struct fwd_xt_rule *r, const char *nam
void __fwd_xt_parse_target(struct fwd_xt_rule *r, struct xtables_target *t, ...);
#define fwd_xt_parse_target(r, t, ...) __fwd_xt_parse_target(r, t, __VA_ARGS__, NULL)
-int fwd_xt_exec_rule(struct fwd_xt_rule *r, const char *chain);
+int fwd_xt_append_rule(struct fwd_xt_rule *r, const char *chain);
+int fwd_xt_insert_rule(struct fwd_xt_rule *r, const char *chain, unsigned int pos);
#endif