summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_NOTRACK.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-06-12 20:55:44 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-06-26 21:13:09 +0200
commitc5e85736c207f211d82d2878a5781f512327dfce (patch)
tree38e324d6ae9697bf3bba4c9110308a2e9e42b0bf /extensions/libxt_NOTRACK.c
parentcc4344042e8c0bb6eef877975588321aa152660d (diff)
extensions: collapse registration structures
There are no different code paths between IPV4 and IPV6, so data can be consolidated here. text data bss dec hex filename 243757 12212 2576 258545 3f1f1 ip6tables-static[before.i586] 243613 9428 2576 255617 3e681 ip6tables-static[after.i586] -144 -2784 Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_NOTRACK.c')
-rw-r--r--extensions/libxt_NOTRACK.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/extensions/libxt_NOTRACK.c b/extensions/libxt_NOTRACK.c
index ef266543..d997d84f 100644
--- a/extensions/libxt_NOTRACK.c
+++ b/extensions/libxt_NOTRACK.c
@@ -20,17 +20,7 @@ NOTRACK_parse(int c, char **argv, int invert, unsigned int *flags,
}
static struct xtables_target notrack_target = {
- .family = NFPROTO_IPV4,
- .name = "NOTRACK",
- .version = XTABLES_VERSION,
- .size = XT_ALIGN(0),
- .userspacesize = XT_ALIGN(0),
- .help = NOTRACK_help,
- .parse = NOTRACK_parse,
-};
-
-static struct xtables_target notrack_target6 = {
- .family = NFPROTO_IPV6,
+ .family = NFPROTO_UNSPEC,
.name = "NOTRACK",
.version = XTABLES_VERSION,
.size = XT_ALIGN(0),
@@ -42,5 +32,4 @@ static struct xtables_target notrack_target6 = {
void _init(void)
{
xtables_register_target(&notrack_target);
- xtables_register_target(&notrack_target6);
}