pending/63_getorigdst-tuple-zero syntax error
Harald:
The current IP_CT_TUPLE_BLANK() macro expansion does not protect it's arguments, making a syntax error in ip_conntrack_core when the macro is used IP_CT_TUPLE_BLANK(&tuple);
This expands to &tuple->memberfield which is not what is expected.. (&tuple)->memberfield or tuple.memberfield would work.
The attached patch adds the required parantesis around the macro argument expansions giving (&tuple)->member in the expansion.
Regards
Henrik
Index: pending/63_getorigdst-tuple-zero.patch
===================================================================
RCS file: /cvspublic/netfilter/patch-o-matic/pending/63_getorigdst-tuple-zero.patch,v retrieving revision 1.2
63_getorigdst-tuple-zero.patch +2 -2
@@ -9,8 +9,8 @@ diff -Nru --exclude .depend --exclude '* + * really care about is the source/destination unions */ +#define IP_CT_TUPLE_BLANK(tuple) \ + do { \ -+ tuple->src.u.all = 0; \ -+ tuple->dst.u.all = 0; \ ++ (tuple)->src.u.all = 0; \ ++ (tuple)->dst.u.all = 0; \ + } while (0) + enum ip_conntrack_dir