diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-04-15 11:48:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-15 14:01:06 +0200 |
commit | 8b7c64d6ba156a99008fcd810cba874c73294333 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_ecn.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) | |
download | platform_external_iptables-8b7c64d6ba156a99008fcd810cba874c73294333.tar.gz platform_external_iptables-8b7c64d6ba156a99008fcd810cba874c73294333.tar.bz2 platform_external_iptables-8b7c64d6ba156a99008fcd810cba874c73294333.zip |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_ecn.c')
-rw-r--r-- | extensions/libipt_ecn.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_ecn.c b/extensions/libipt_ecn.c index 9c07eab3..06214535 100644 --- a/extensions/libipt_ecn.c +++ b/extensions/libipt_ecn.c @@ -19,11 +19,10 @@ static void ecn_help(void) { printf( -"ECN match v%s options\n" +"ECN match options\n" "[!] --ecn-tcp-cwr Match CWR bit of TCP header\n" "[!] --ecn-tcp-ece Match ECE bit of TCP header\n" -"[!] --ecn-ip-ect [0..3] Match ECN codepoint in IPv4 header\n", - IPTABLES_VERSION); +"[!] --ecn-ip-ect [0..3] Match ECN codepoint in IPv4 header\n"); } static const struct option ecn_opts[] = { @@ -144,11 +143,12 @@ static void ecn_save(const void *ip, const struct xt_entry_match *match) } } -static struct iptables_match ecn_match = { +static struct xtables_match ecn_mt_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, @@ -159,5 +159,5 @@ static struct iptables_match ecn_match = { void _init(void) { - register_match(&ecn_match); + xtables_register_match(&ecn_mt_reg); } |