diff options
author | Patrick McHardy <kaber@trash.net> | 2011-04-12 16:05:39 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-12 16:05:39 +0200 |
commit | cd50f26ad6016ae57af1f822f8aa3ceb2ef9727a (patch) | |
tree | ecd79b89cc099c7ca1726df0417328cc822a9e69 /xshared.h | |
parent | 884d2675f1a880ffcc072da69ab8c9aaea2a3bce (diff) | |
parent | b18ffe3636b07cd817628de81643136e4755a944 (diff) |
Merge branch 'opts' of git://dev.medozas.de/iptables
Diffstat (limited to 'xshared.h')
-rw-r--r-- | xshared.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -26,6 +26,24 @@ enum { struct xtables_rule_match; struct xtables_target; +/** + * xtables_afinfo - protocol family dependent information + * @kmod: kernel module basename (e.g. "ip_tables") + * @libprefix: prefix of .so library name (e.g. "libipt_") + * @family: nfproto family + * @ipproto: used by setsockopt (e.g. IPPROTO_IP) + * @so_rev_match: optname to check revision support of match + * @so_rev_target: optname to check revision support of target + */ +struct xtables_afinfo { + const char *kmod; + const char *libprefix; + uint8_t family; + uint8_t ipproto; + int so_rev_match; + int so_rev_target; +}; + struct iptables_command_state { union { struct ipt_entry fw; @@ -59,4 +77,6 @@ extern const char *proto_to_name(uint8_t, int); extern struct xtables_match *load_proto(struct iptables_command_state *); extern int subcmd_main(int, char **, const struct subcommand *); +extern const struct xtables_afinfo *afinfo; + #endif /* IPTABLES_XSHARED_H */ |