Re: [nftables-kernel PATCH] netfilter: nftables: Fix sparse endianness issue on nft_nat.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Patrick,

On Fri, Oct 18, 2013 at 12:00:53PM +0300, Tomasz Bursztyka wrote:
+			range.max_addr.ip =
+				be32_to_cpup((__be32 *)
+					data[priv->sreg_addr_max].data);
That doesn't seem correct, we don't want to actually switch the byteorder of
the data. I'd suggest to simply use (__force __be32).

Was sure I messed up with that. Thanks

Tomasz
--
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




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux