diff options
Diffstat (limited to 'lib/ipset_bitmap_port.c')
-rw-r--r-- | lib/ipset_bitmap_port.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ipset_bitmap_port.c b/lib/ipset_bitmap_port.c index 3101b22..de02e50 100644 --- a/lib/ipset_bitmap_port.c +++ b/lib/ipset_bitmap_port.c @@ -47,7 +47,7 @@ static const char bitmap_port_usage[] = "test SETNAME PORT\n\n" "where PORT, FROM and TO are port numbers or port names from /etc/services.\n"; -struct ipset_type ipset_bitmap_port0 = { +static struct ipset_type ipset_bitmap_port0 = { .name = "bitmap:port", .alias = { "portmap", NULL }, .revision = 0, @@ -85,3 +85,8 @@ struct ipset_type ipset_bitmap_port0 = { .usage = bitmap_port_usage, }; + +void _init(void) +{ + ipset_type_add(&ipset_bitmap_port0); +} |