diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-13 11:39:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-13 11:39:48 +0100 |
commit | 03091e55a0d949e35a723dadbd6fd0f78ddf3a8c (patch) | |
tree | 3ddb3b5d5813261bf8830a923a360ff50b3bb4b8 /include/xtables.h | |
parent | 2e5babbfaddb267523c8450acf51c06f00f492c7 (diff) | |
parent | 1835790d7f7517f4c101e1c1f3df5519a6c228e7 (diff) |
Merge branch 'nft-compat'
This merges the branch that contains the iptables over nftables
compatibility layer into master.
Diffstat (limited to 'include/xtables.h')
-rw-r--r-- | include/xtables.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h index 02172670..bad11a89 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -401,6 +401,7 @@ struct xtables_globals struct option *orig_opts; struct option *opts; void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3))); + int (*compat_rev)(const char *name, uint8_t rev, int opt); }; #define XT_GETOPT_TABLEEND {.name = NULL, .has_arg = false} @@ -432,6 +433,8 @@ 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, enum xtables_tryload); +extern int xtables_compatible_revision(const char *name, uint8_t revision, + int opt); extern void xtables_rule_matches_free(struct xtables_rule_match **matches); |