summaryrefslogtreecommitdiffstats
path: root/lib/ipset_hash_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipset_hash_ip.c')
-rw-r--r--lib/ipset_hash_ip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ipset_hash_ip.c b/lib/ipset_hash_ip.c
index e885b13..40f684f 100644
--- a/lib/ipset_hash_ip.c
+++ b/lib/ipset_hash_ip.c
@@ -79,7 +79,7 @@ static const char hash_ip_usage[] =
" Adding/deleting multiple elements in IP/CIDR or FROM-TO form\n"
" is supported for IPv4.\n";
-struct ipset_type ipset_hash_ip0 = {
+static struct ipset_type ipset_hash_ip0 = {
.name = "hash:ip",
.alias = { "iphash", NULL },
.revision = 0,
@@ -117,3 +117,8 @@ struct ipset_type ipset_hash_ip0 = {
.usage = hash_ip_usage,
};
+
+void _init(void)
+{
+ ipset_type_add(&ipset_hash_ip0);
+}