mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
SYSRQ: enable userspace module for multiprotocol
This commit is contained in:
@@ -21,21 +21,10 @@ static void sysrq_tg_check(unsigned int flags)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct xtables_target sysrq_tg4_reg = {
|
static struct xtables_target sysrq_tg_reg = {
|
||||||
.version = XTABLES_VERSION,
|
.version = XTABLES_VERSION,
|
||||||
.name = "SYSRQ",
|
.name = "SYSRQ",
|
||||||
.family = PF_INET,
|
.family = PF_UNSPEC,
|
||||||
.size = XT_ALIGN(0),
|
|
||||||
.userspacesize = XT_ALIGN(0),
|
|
||||||
.help = sysrq_tg_help,
|
|
||||||
.parse = sysrq_tg_parse,
|
|
||||||
.final_check = sysrq_tg_check,
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct xtables_target sysrq_tg6_reg = {
|
|
||||||
.version = XTABLES_VERSION,
|
|
||||||
.name = "SYSRQ",
|
|
||||||
.family = PF_INET6,
|
|
||||||
.size = XT_ALIGN(0),
|
.size = XT_ALIGN(0),
|
||||||
.userspacesize = XT_ALIGN(0),
|
.userspacesize = XT_ALIGN(0),
|
||||||
.help = sysrq_tg_help,
|
.help = sysrq_tg_help,
|
||||||
@@ -45,6 +34,5 @@ static struct xtables_target sysrq_tg6_reg = {
|
|||||||
|
|
||||||
static __attribute__((constructor)) void sysrq_tg_ldr(void)
|
static __attribute__((constructor)) void sysrq_tg_ldr(void)
|
||||||
{
|
{
|
||||||
xtables_register_target(&sysrq_tg4_reg);
|
xtables_register_target(&sysrq_tg_reg);
|
||||||
xtables_register_target(&sysrq_tg6_reg);
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user