Skip to contentSkip to conversation

XT_CONTINUE/EBT_CONTINUE for universal modules

DISCUSSION Thomas Graf 2 participants 3 messages Mar 8, 2011 – Mar 9, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

Hi

xt_AUDIT.c currently returns XT_CONTINUE. The module is universal and would be useable from ebtables if it wasn't for ebtables to expect EBT_CONTINUE.

Is the only way around this cloning xt_AUDIT.c to ebt_audit.c? I've seen some patches from Jan converting ebtables to use xtables infrastucture but they haven't been merged.

#1 lore raw
Quoted 5 lines · Thomas Graf

xt_AUDIT.c currently returns XT_CONTINUE. The module is universal and would be useable from ebtables if it wasn't for ebtables to expect EBT_CONTINUE.

Is the only way around this cloning xt_AUDIT.c to ebt_audit.c?

You could make all ebt targets ust XT_* values, provided that they are translated from/to EBT_* when reading/writing the table from/to userspace.

Quoted 4 lines

I've seen some patches from Jan converting ebtables to use xtables infrastucture but they haven't been merged.

From what I remember, they have become

v2.6.28-rc1~717^2~109^2~29..v2.6.28-rc1~717^2~109^2~18 . If not, which patches would you be referring to?

#2 lore raw
Quoted 10 lines · Jan Engelhardt
Quoted 5 lines · Thomas Graf

xt_AUDIT.c currently returns XT_CONTINUE. The module is universal and would be useable from ebtables if it wasn't for ebtables to expect EBT_CONTINUE.

Is the only way around this cloning xt_AUDIT.c to ebt_audit.c?

You could make all ebt targets ust XT_* values, provided that they are translated from/to EBT_* when reading/writing the table from/to userspace.

I guess it's not worth it considering that Xtables2 is around the corner.

I'll just clone xt_AUDIT.

Quoted 6 lines
Quoted 4 lines

I've seen some patches from Jan converting ebtables to use xtables infrastucture but they haven't been merged.

From what I remember, they have become

v2.6.28-rc1~717^2~109^2~29..v2.6.28-rc1~717^2~109^2~18 . If not, which patches would you be referring to?

I was referring to:

11/13 [NETFILTER]: Make Ebtables use Xtables infrastructure