path: root/include/iptables_common.h
diff options
authorYasuyuki KOZAKAI <>2007-07-24 05:52:07 +0000
committerYasuyuki KOZAKAI <>2007-07-24 05:52:07 +0000
commit0d502bcdbc97ed359e84f6a21dfa0049b3b60a6c (patch)
tree537187d08bae1bac51328c5d27f3c24f72b6cc06 /include/iptables_common.h
parent0b82e8e81e887843011c8771f70d2302901f7e5e (diff)
Introduces xtables match/target registration
- moves lib_dir to xtables.c - introduces struct pfinfo which has protocol family dependent infomations. - unifies load_ip[6]tables_ko() and moves them as load_xtables_ko() - introduces xt_{match,match_rule,target,tryload} and replaces ip[6]t_* with them - unifies following functions and move them to xtables.c - find_{match,find_target} - compatible_revision, compatible_{match,target}_revision - introduces xtables_register_{match,target} and make register_{match,target}[6] call them. xtables_register_* register ONLY matches/targets matched protocol family Some concepts: - source compatibility for libip[6]t_xxx.c with warning on compilation not binary compatibility. - binary compatibility between 2.4/2.6 kernel and iptables/ip6tables, of cause. - xtables is enough to support only one address family at runtime. Then xtables keeps infomations of only the focused address famiy in struct afinfo.
Diffstat (limited to 'include/iptables_common.h')
1 files changed, 0 insertions, 2 deletions
diff --git a/include/iptables_common.h b/include/iptables_common.h
index 3b61e72d..3e190805 100644
--- a/include/iptables_common.h
+++ b/include/iptables_common.h
@@ -27,11 +27,9 @@ extern int string_to_number_ll(const char *,
unsigned long long int,
unsigned long long int,
unsigned long long *);
-extern int load_iptables_ko(const char *modprobe, int quiet);
void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
extern const char *program_name, *program_version;
-extern char *lib_dir;
#define _init __attribute__((constructor)) my_init