libxt_DNETMAP.c:242:13: warning: ‘_init’ defined but not used [-Wunused-function]
242 | static void _init(void)
.extra_opts = DNETMAP_opts,
};
-static void _init(void)
+static __attribute__((constructor)) void dnetmap_tg_ldr(void)
{
xtables_register_target(&dnetmap_tg_reg);
}
.extra_opts = iface_mt_opts,
};
-static void _init(void)
+static __attribute__((constructor)) void iface_mt_ldr(void)
{
xtables_register_match(&iface_mt_reg);
}
.extra_opts = length_mt_opts,
};
-static void _init(void)
+static __attribute__((constructor)) void length2_mt_ldr(void)
{
xtables_register_match(&length2_mt_reg);
}