From 7d68df47fad305673958351a4e2a5c6e75927caa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 12 Jun 2009 20:59:34 +0200 Subject: extensions: remove empty help and parse functions Signed-off-by: Jan Engelhardt --- extensions/libip6t_eui64.c | 26 -------------------------- extensions/libipt_MIRROR.c | 20 -------------------- extensions/libipt_unclean.c | 16 ---------------- extensions/libxt_NOTRACK.c | 20 -------------------- extensions/libxt_TRACE.c | 13 ------------- extensions/libxt_socket.c | 20 -------------------- extensions/libxt_standard.c | 12 ------------ 7 files changed, 127 deletions(-) (limited to 'extensions') diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c index c92c8687..607bf86f 100644 --- a/extensions/libip6t_eui64.c +++ b/extensions/libip6t_eui64.c @@ -1,38 +1,12 @@ /* Shared library add-on to ip6tables to add EUI64 address checking support. */ -#include -#include -#include -#include -#include -#if defined(__GLIBC__) && __GLIBC__ == 2 -#include -#else -#include -#endif #include -static void eui64_help(void) -{ - printf( -"eui64 match options:\n" -" This module hasn't got any option\n" -" This module checks for EUI64 IPv6 addresses\n"); -} - -static int eui64_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_match **match) -{ - return 0; -} - static struct xtables_match eui64_mt6_reg = { .name = "eui64", .version = XTABLES_VERSION, .family = NFPROTO_IPV6, .size = XT_ALIGN(sizeof(int)), .userspacesize = XT_ALIGN(sizeof(int)), - .help = eui64_help, - .parse = eui64_parse, }; void _init(void) diff --git a/extensions/libipt_MIRROR.c b/extensions/libipt_MIRROR.c index 81964dd7..fb78751d 100644 --- a/extensions/libipt_MIRROR.c +++ b/extensions/libipt_MIRROR.c @@ -1,32 +1,12 @@ /* Shared library add-on to iptables to add MIRROR target support. */ -#include -#include -#include -#include - #include -static void MIRROR_help(void) -{ - printf("MIRROR target takes no options\n"); -} - -static int MIRROR_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_target **target) -{ - return 0; -} - static struct xtables_target mirror_tg_reg = { .name = "MIRROR", .version = XTABLES_VERSION, .family = NFPROTO_IPV4, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), - .help = MIRROR_help, - .parse = MIRROR_parse, - .print = NULL, - .save = NULL, }; void _init(void) diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index 93d9013e..bc4a4a08 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -1,28 +1,12 @@ /* Shared library add-on to iptables for unclean. */ -#include -#include -#include #include -static void unclean_help(void) -{ - printf("unclean match takes no options\n"); -} - -static int unclean_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_match **match) -{ - return 0; -} - static struct xtables_match unclean_mt_reg = { .name = "unclean", .version = XTABLES_VERSION, .family = NFPROTO_IPV4, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), - .help = unclean_help, - .parse = unclean_parse, }; void _init(void) diff --git a/extensions/libxt_NOTRACK.c b/extensions/libxt_NOTRACK.c index d997d84f..ca587002 100644 --- a/extensions/libxt_NOTRACK.c +++ b/extensions/libxt_NOTRACK.c @@ -1,23 +1,5 @@ /* Shared library add-on to iptables to add NOTRACK target support. */ -#include -#include -#include -#include - #include -#include - -static void NOTRACK_help(void) -{ - printf("NOTRACK target takes no options\n"); -} - -static int -NOTRACK_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_target **target) -{ - return 0; -} static struct xtables_target notrack_target = { .family = NFPROTO_UNSPEC, @@ -25,8 +7,6 @@ static struct xtables_target notrack_target = { .version = XTABLES_VERSION, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), - .help = NOTRACK_help, - .parse = NOTRACK_parse, }; void _init(void) diff --git a/extensions/libxt_TRACE.c b/extensions/libxt_TRACE.c index 344b80dc..0282e6ff 100644 --- a/extensions/libxt_TRACE.c +++ b/extensions/libxt_TRACE.c @@ -7,25 +7,12 @@ #include #include -static void TRACE_help(void) -{ - printf("TRACE target takes no options\n"); -} - -static int TRACE_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_target **target) -{ - return 0; -} - static struct xtables_target trace_target = { .family = NFPROTO_UNSPEC, .name = "TRACE", .version = XTABLES_VERSION, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), - .help = TRACE_help, - .parse = TRACE_parse, }; void _init(void) diff --git a/extensions/libxt_socket.c b/extensions/libxt_socket.c index eebc7c55..1490473b 100644 --- a/extensions/libxt_socket.c +++ b/extensions/libxt_socket.c @@ -3,34 +3,14 @@ * * Copyright (C) 2007 BalaBit IT Ltd. */ -#include -#include #include -static void socket_mt_help(void) -{ - printf("socket v%s has no options\n\n", XTABLES_VERSION); -} - -static int socket_mt_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_match **match) -{ - return 0; -} - -static void socket_mt_check(unsigned int flags) -{ -} - static struct xtables_match socket_mt_reg = { .name = "socket", .version = XTABLES_VERSION, .family = NFPROTO_IPV4, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), - .parse = socket_mt_parse, - .final_check = socket_mt_check, - .help = socket_mt_help, }; void _init(void) diff --git a/extensions/libxt_standard.c b/extensions/libxt_standard.c index 56dc2d29..c64ba297 100644 --- a/extensions/libxt_standard.c +++ b/extensions/libxt_standard.c @@ -1,10 +1,5 @@ /* Shared library add-on to iptables for standard target support. */ #include -#include -#include -#include -#include -#include #include static void standard_help(void) @@ -14,12 +9,6 @@ static void standard_help(void) "(If target is DROP, ACCEPT, RETURN or nothing)\n"); } -static int standard_parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, struct xt_entry_target **target) -{ - return 0; -} - static struct xtables_target standard_target = { .family = NFPROTO_UNSPEC, .name = "standard", @@ -27,7 +16,6 @@ static struct xtables_target standard_target = { .size = XT_ALIGN(sizeof(int)), .userspacesize = XT_ALIGN(sizeof(int)), .help = standard_help, - .parse = standard_parse, }; void _init(void) -- cgit v1.2.3