diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2009-02-13 09:14:17 -0500 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-02-13 15:46:52 +0100 |
commit | 7e4db2f50133007f549f222468bde4f3adcf41ac (patch) | |
tree | 161425eb53b09d37cc86f961fdb1760548b8e338 /include/xtables.h.in | |
parent | 70581922f873a88306dd5b1cb83c5081ee239eb8 (diff) |
libxtables: consolidate init calls into one function
Introduce xtables_init_all() which hides three calls xtables_init(),
xtables_set_nfproto(), and xtables_set_params(). Make
ip[6]tables-restore, ip[6]tables-save and ip[6]tables-standalone use
it.
I moved xtables_set_params around for readability reasons.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index aaadbbd6..4ab0ecbe 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -210,6 +210,7 @@ extern void xtables_free_opts(int reset_offset); extern struct option *xtables_merge_options(struct option *oldopts, const struct option *newopts, unsigned int *option_offset); +extern int xtables_init_all(struct xtables_globals *xtp, uint8_t nfproto); extern struct xtables_match *xtables_find_match(const char *name, enum xtables_tryload, struct xtables_rule_match **match); extern struct xtables_target *xtables_find_target(const char *name, |