[BUG] ipt_SAME rule can't be deleted

Samuel Jean sj-netfilter at cookinglinux.org
Mon Dec 6 21:59:45 CET 2004

On Mon, December 6, 2004 2:34 am, Henrik Nordstrom said:

>          u_int32_t *iparray;
> If I am right the same problem applies to -m limit and any other extension
> storing private kernel side stuff within it's info data..

If I am right too,
This wouldn't happen if we moved u_int32_t *iparray at end of structure.
Then, registering the target plugin that way :

    .size            = IPT_ALIGN(sizeof(struct ipt_same_info)),
    .userspacesize   = offsetof(struct ipt_same_info, iparray),

Would fix this inconveniant.

> Regards
> Henrik
Best regards,

CookingLinux TM

More information about the netfilter-devel mailing list