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_addrtype.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_addrtype.c')
-rw-r--r-- | extensions/libipt_addrtype.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_addrtype.c b/extensions/libipt_addrtype.c index 7db9dce7..9611c39a 100644 --- a/extensions/libipt_addrtype.c +++ b/extensions/libipt_addrtype.c @@ -39,12 +39,11 @@ static void addrtype_help_types(void) static void addrtype_help(void) { printf( -"Address type match v%s options:\n" +"Address type match options:\n" " [!] --src-type type[,...] Match source address type\n" " [!] --dst-type type[,...] Match destination address type\n" "\n" -"Valid types: \n" -, IPTABLES_VERSION); +"Valid types: \n"); addrtype_help_types(); } @@ -183,11 +182,12 @@ static const struct option addrtype_opts[] = { { .name = NULL } }; -static struct iptables_match addrtype_match = { +static struct xtables_match addrtype_mt_reg = { .name = "addrtype", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_addrtype_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_addrtype_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_addrtype_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_addrtype_info)), .help = addrtype_help, .parse = addrtype_parse, .final_check = addrtype_check, @@ -199,5 +199,5 @@ static struct iptables_match addrtype_match = { void _init(void) { - register_match(&addrtype_match); + xtables_register_match(&addrtype_mt_reg); } |