Re: [PATCH] add new iptables ipt_connbytes match
From: Andi Kleen <hidden>
Date: 2005-08-12 11:39:44
Also in:
netfilter-devel
From: Andi Kleen <hidden>
Date: 2005-08-12 11:39:44
Also in:
netfilter-devel
"David S. Miller" [off-list ref] writes:
From: Harald Welte <redacted> Date: Thu, 11 Aug 2005 22:03:49 +0200quoted
+struct ipt_connbytes_info +{ + struct { + u_int64_t from; /* count to be matched */ + u_int64_t to; /* count to be matched */ + } count; + u_int8_t what; /* ipt_connbytes_what */ + u_int8_t direction; /* ipt_connbytes_direction */ +};Won't work in x86 --> x86_64 compat environments.
Thanks for catching it. The aligned u64 trick probably will #define aligned_u64 unsigned long long __attribute__((aligned(8))) It just forces i386 to be aligned too. Then use aligned_u64 instead of u64/__u64/u_int64_t in all user visible places. Similar for signed types. -Andi