diff options
Diffstat (limited to 'lib/ipset_hash_netiface.c')
-rw-r--r-- | lib/ipset_hash_netiface.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ipset_hash_netiface.c b/lib/ipset_hash_netiface.c index 7fca5fe..e60acbf 100644 --- a/lib/ipset_hash_netiface.c +++ b/lib/ipset_hash_netiface.c @@ -62,7 +62,7 @@ static const char hash_netiface_usage[] = " CIDR is a valid IPv4 or IPv6 CIDR prefix.\n" " Adding/deleting multiple elements with IPv4 is supported.\n"; -struct ipset_type ipset_hash_netiface0 = { +static struct ipset_type ipset_hash_netiface0 = { .name = "hash:net,iface", .alias = { "netifacehash", NULL }, .revision = 0, @@ -143,7 +143,7 @@ static const char hash_netiface1_usage[] = " CIDR is a valid IPv4 or IPv6 CIDR prefix.\n" " Adding/deleting multiple elements with IPv4 is supported.\n"; -struct ipset_type ipset_hash_netiface1 = { +static struct ipset_type ipset_hash_netiface1 = { .name = "hash:net,iface", .alias = { "netifacehash", NULL }, .revision = 1, @@ -200,3 +200,8 @@ struct ipset_type ipset_hash_netiface1 = { .usage = hash_netiface1_usage, }; +void _init(void) +{ + ipset_type_add(&ipset_hash_netiface0); + ipset_type_add(&ipset_hash_netiface1); +} |