[B.A.T.M.A.N.] [PATCH net-next 2/4] bridge: adhere to querier election mechanism specified by RFCs

David Miller davem at davemloft.net
Sat May 24 05:36:37 CEST 2014


From: Linus Lüssing <linus.luessing at web.de>
Date: Wed, 21 May 2014 10:59:00 +0200

> +	if (saddr <= br->ip4_querier.addr.u.ip4)
> +		goto update;

It is clear to me that you should be making these comparisons in cpu
endianness.

Otherwise the code will handle the same situations differently
on big-endian vs. little-endian machines.



More information about the B.A.T.M.A.N mailing list