path: root/include
diff options
authorNeutron Soutmun <>2012-05-10 08:05:53 +0200
committerJozsef Kadlecsik <>2012-05-10 08:05:53 +0200
commit2da431d3685c65d4355d387e213a3cd39d5b59f3 (patch)
treeef3fce367aa55aaae55a8b31a2782775a1adffcb /include
parentf65b878e52494662fbb648132898575071bed75d (diff)
Add dynamic module support to ipset userspace tool
The patch adds supporting dynamic modules for the set types to ipset userspace tool. The dynamic module support can be enabled by the --enable-settype-modules of "configure". The list of set types to be compiled as dynamic modules can be specified in the --with-settype-modules-list option. Example --enable-settype-modules \ --with-settype-modules-list="ipset_hash_ip ipset_hash_ipport" The keyword "all" can be used to compile all set types as dynamic modules.
Diffstat (limited to 'include')
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h
index 950988f..1fd3f92 100644
--- a/include/libipset/types.h
+++ b/include/libipset/types.h
@@ -107,4 +107,16 @@ extern bool ipset_match_typename(const char *str,
const struct ipset_type *t);
extern void ipset_load_types(void);
+extern void ipset_types_init(void);
+# ifdef _INIT
+# undef _init
+# define _init _INIT
+# endif
+# undef _init
+# define _init __attribute__((constructor)) _INIT
#endif /* LIBIPSET_TYPES_H */