From 6cd49745931f42cfe2280bf78e483035c3c5e2e6 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 15 Apr 2008 12:01:06 +0000 Subject: [PATCH 08/10] Remove old functions, constants --- extensions/libipt_ECN.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_ECN.c') diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c index 1523b2d..9526c37 100644 --- a/extensions/libipt_ECN.c +++ b/extensions/libipt_ECN.c @@ -20,9 +20,8 @@ static void ECN_help(void) { printf( -"ECN target v%s options\n" -" --ecn-tcp-remove Remove all ECN bits from TCP header\n", - IPTABLES_VERSION); +"ECN target options\n" +" --ecn-tcp-remove Remove all ECN bits from TCP header\n"); } #if 0 @@ -153,11 +152,12 @@ static void ECN_save(const void *ip, const struct xt_entry_target *target) } } -static struct iptables_target ecn_target = { +static struct xtables_target ecn_tg_reg = { .name = "ECN", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_ECN_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_ECN_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_ECN_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_ECN_info)), .help = ECN_help, .parse = ECN_parse, .final_check = ECN_check, @@ -168,5 +168,5 @@ static struct iptables_target ecn_target = { void _init(void) { - register_target(&ecn_target); + xtables_register_target(&ecn_tg_reg); } -- cgit v1.2.3