Re: Invalid size of target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 2008-07-16 20:15, Kevin Sookocheff wrote:

>Hi Jan,
>
>Simplifying my iptables private struct in ipt_CSUM.h down to
>
>struct ipt_CSUM_info {
>   u_int32_t    count;
>};
>
>and calculating .size .userspacesize (in libiptCSUM.c) and .targetsize
>(in ipt_CSUM.c) all with IPT_ALIGN(sizeof(struct ipt_CSUM_info) gives
>me an error stating:
>
>iptables: CSUM target: invalid size 12 != 4

It's impossible to figure out if there is no code to have a look at.

>In what way should I be creating this struct so that it aligns
>correctly in user and kernel space?

With the above struct, you fulfilled all alignment requirements.
It's a brown paper bag to me, and only compiling it myself
here will yield more information.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux