diff options
Diffstat (limited to 'lib/ipset_hash_ipport.c')
-rw-r--r-- | lib/ipset_hash_ipport.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ipset_hash_ipport.c b/lib/ipset_hash_ipport.c index 54664e1..c9c3b60 100644 --- a/lib/ipset_hash_ipport.c +++ b/lib/ipset_hash_ipport.c @@ -85,7 +85,7 @@ static const char hash_ipport1_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_ipport1 = { +static struct ipset_type ipset_hash_ipport1 = { .name = "hash:ip,port", .alias = { "ipporthash", NULL }, .revision = 1, @@ -142,3 +142,8 @@ struct ipset_type ipset_hash_ipport1 = { .usage = hash_ipport1_usage, .usagefn = ipset_port_usage, }; + +void _init(void) +{ + ipset_type_add(&ipset_hash_ipport1); +} |