From 187c8099704d4616de9479104ba6560c03f90c39 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 31 Dec 2011 16:39:13 +0100 Subject: conntrack: fix size of CTA_PROTOINFO_TCP_FLAGS_ORIGINAL in ARM We have to use sizeof(struct nf_ct_tcp_flags) instead of sizeof(u_int16_t) to avoid problems in Intel IXP4xx network processor (ARM big endian). For more information, please see: http://markmail.org/message/afhn66qzyebyf7cs#query:+page:1+mid:7bw756ncuyosv23c+state:results Reported-by: Lutz Jaenicke Signed-off-by: Pablo Neira Ayuso --- include/internal/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/internal/internal.h b/include/internal/internal.h index 7dce03c..b2b1c43 100644 --- a/include/internal/internal.h +++ b/include/internal/internal.h @@ -76,4 +76,10 @@ #define NSEC_PER_SEC 1000000000L #endif +/* extracted from include/linux/netfilter/nf_conntrack_tcp.h .*/ +struct nf_ct_tcp_flags { + u_int8_t flags; + u_int8_t mask; +}; + #endif -- cgit v1.2.3