History

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.

Hans Schillstrom committed 14 years ago

Commit d1992b11 parent da2e8522 files · +46 −31Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/netfilter/xt_HMARK.h+5−0
@@ -27,7 +27,12 @@ union hmark_ports { · 26 unmodified lines
27 __u16 src;27 __u16 src;
28 __u16 dst;28 __u16 dst;
29 } p16;29 } p16;
30 struct {
31 __be16 src;
32 __be16 dst;
33 } b16;
30 __u32 v32;34 __u32 v32;
35 __be32 b32;
31};36};
32 37
33struct xt_hmark_info {38struct xt_hmark_info {