From 8b7c64d6ba156a99008fcd810cba874c73294333 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 15 Apr 2008 11:48:25 +0200 Subject: 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 1523b2df..9526c37d 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