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_REJECT.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'extensions/libipt_REJECT.c') diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index 5901a5ef..fd272c47 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -70,7 +70,7 @@ print_reject_types(void) static void REJECT_help(void) { printf( -"REJECT options:\n" +"REJECT target options:\n" "--reject-with type drop input packet and send back\n" " a reply packet according to type:\n"); @@ -157,11 +157,12 @@ static void REJECT_save(const void *ip, const struct xt_entry_target *target) printf("--reject-with %s ", reject_table[i].name); } -static struct iptables_target reject_target = { +static struct xtables_target reject_tg_reg = { .name = "REJECT", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_reject_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_reject_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_reject_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_reject_info)), .help = REJECT_help, .init = REJECT_init, .parse = REJECT_parse, @@ -172,5 +173,5 @@ static struct iptables_target reject_target = { void _init(void) { - register_target(&reject_target); + xtables_register_target(&reject_tg_reg); } -- cgit v1.2.3