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
2727 __u16 src;
2828 __u16 dst;
2929 } p16;
30+ struct {
31+ __be16 src;
32+ __be16 dst;
33+ } b16;
3034 __u32 v32;
35+ __be32 b32;
3136 };
3237
3338 struct xt_hmark_info {