Re: Invalid size of target

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

 



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

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

Thanks again,
Kevin




On Tue, Jul 15, 2008 at 10:52 AM, Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:
>
> On Tuesday 2008-07-15 14:47, Kevin Sookocheff wrote:
>
> >Great, that worked wonderfully!
> >
> >So, just out of curiosity and for completeness, do you know why this
> >error would present itself only on SMP kernels?  I'm presuming it has
> >something to do with what version of IPTables is compiled in the
> >kernel.
>
> The kernel-level iptables component has no version number (it uses
> the kernel version). For best interoperability (and chance to get an
> answer to a bugreport), 2.6.18 or any kernel more recent than that,
> specifically its latest stable versions, and userspace
> iptables >= 1.4.1.1 are strongly recommended.
--
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