]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_HMARK: fix endianness and provide consistent hashing
authorHans Schillstrom <hans@schillstrom.com>
Thu, 17 May 2012 22:35:46 +0000 (22:35 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2012 12:53:01 +0000 (14:53 +0200)
commit855aeab8c96188210bc503e8e7f787ff2210ae32
tree200649e617e0c1a548e9404989e17ed8a58c6e4b
parent378b51d0ba53b606aa4b39c559fecc9c518b412e
netfilter: xt_HMARK: fix endianness and provide consistent hashing

This patch addresses two issues:

a) Fix usage of u32 and __be32 that causes endianess warnings via sparse.
b) Ensure consistent hashing in a cluster that is composed of big and
   little endian systems. Thus, we obtain the same hash mark in an
   heterogeneous cluster.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/xt_HMARK.h
net/netfilter/xt_HMARK.c