New target: can't delete rule
Gervasio Bernal
gervasiobernal at speedy.com.ar
Mon Sep 12 22:45:40 CEST 2005
Pablo Neira wrote:
> Gervasio Bernal wrote:
>
>> I did what you said, but I cannot make walk it.
>> This is my libipt_CRYPT.c
>> static struct iptables_target CRYPT = { .name =
>> "CRYPT", .version = IPTABLES_VERSION, .size
>> = IPT_ALIGN(sizeof(struct ipt_CRYPT_info)), .userspacesize =
>> offsetof(struct ipt_CRYPT_info,
>> table_alloc_ptr), .help = &help,
>> .init = &init, .parse = &parse,
>> .final_check = &final_check, .print = &print,
>> .save = &save, .extra_opts = opts };
>>
>> This is my ipt_CRYPT.h
>> struct ipt_CRYPT_info { char key[MAX_KEY_SIZE];
>> unsigned int block_size; unsigned int key_size;
>> struct tabla_alloc* table_alloc_ptr; };
>> struct tabla_alloc { struct crypto_tfm *tfm; struct
>> tabla_alloc* next; struct tabla_alloc* ant; };
>
>
> It looks fine. Which iptables version are you using? If my mind servers
> well, I remember that there was a bug related with targets and the use
> of userspacesize in old iptables versions (<= 1.3.1). If so, please try
> with the lastest update.
>
> --
> Pablo
>
Yes, I have iptables version 1.3.1. I will try with one newer and I
comment to you.
Thanks again
More information about the netfilter-devel
mailing list