diff options
Diffstat (limited to 'lib/ipset_hash_ipportip.c')
-rw-r--r-- | lib/ipset_hash_ipportip.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ipset_hash_ipportip.c b/lib/ipset_hash_ipportip.c index 4599b01..ac6182b 100644 --- a/lib/ipset_hash_ipportip.c +++ b/lib/ipset_hash_ipportip.c @@ -85,7 +85,7 @@ static const char hash_ipportip1_usage[] = " Adding/deleting multiple elements with TCP/SCTP/UDP/UDPLITE\n" " port range is supported both for IPv4 and IPv6.\n"; -struct ipset_type ipset_hash_ipportip1 = { +static struct ipset_type ipset_hash_ipportip1 = { .name = "hash:ip,port,ip", .alias = { "ipportiphash", NULL }, .revision = 1, @@ -153,3 +153,8 @@ struct ipset_type ipset_hash_ipportip1 = { .usage = hash_ipportip1_usage, .usagefn = ipset_port_usage, }; + +void _init(void) +{ + ipset_type_add(&ipset_hash_ipportip1); +} |