path: root/include/
diff options
authorJamal Hadi Salim <>2009-02-11 13:00:02 +0100
committerPatrick McHardy <>2009-02-11 13:00:02 +0100
commit84c3055bf08d0a8fe5db6e5f3f96dd826a290147 (patch)
treec66e311cd6fba61bac93caf3bd787ee3560066cf /include/
parent8e90ce66a99e5dc9b055a9fd14e8e9216f90233c (diff)
libxtables: define xtables_free_opts()
Introduce xtables_free_opts() an xtables variant of free_opts() which uses xtables_globals already set by xtables_set_params(). The end goal is to have all internal references in xtables.c use xtables_free_opts() instead of depending on external defined free_opts() Signed-off-by: Jamal Hadi Salim <> Signed-off-by: Patrick McHardy <>
Diffstat (limited to 'include/')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ b/include/
index 61dbc767..1d333942 100644
--- a/include/
+++ b/include/
@@ -204,6 +204,7 @@ extern void *xtables_malloc(size_t);
extern int xtables_insmod(const char *, const char *, bool);
extern int xtables_load_ko(const char *, bool);
int xtables_set_params(struct xtables_globals *xtp);
+void xtables_free_opts(int reset_offset, struct option *original_opts);
extern struct xtables_match *xtables_find_match(const char *name,
enum xtables_tryload, struct xtables_rule_match **match);