Albert Veli wrote: > Hi! > > I run contrack-tools on a big-endian arm machine and had a problem: > > $ conntrack -L > conntrack v0.9.7: Operation failed: Address family not supported by protocol > > The problem was in libnetfilter_conntrack-0.0.96/src/conntrack/api.c. > See attached endian.patch. In nfct_build_query() the *data argument is > converted into a u_int8_t*. This works for little-endian but not for > big-endian. The fix is a one-liner. Replace > > const u_int8_t *family = data; > > with > > const u_int32_t *family = data; > > After the patch it works: > > $ conntrack -L > conntrack v0.9.7: 0 flow entries has been shown. > > I also tested the patch on my little-endian laptop and it doesn't seem > to cause any regression there. Just wanted to let you guys know. Applied. Thanks Albert. -- "Los honestos son inadaptados sociales" -- Les Luthiers -- 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