summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-12-02 22:05:08 -0800
committerDavid S. Miller <davem@davemloft.net>2006-12-02 22:05:08 -0800
commitbff9a89bcac5b68ac0a1ea856b1726a35ae1eabb (patch)
tree188356d5411849c8d7b1a36dcb3223373a0bbb68 /include/net
parentf9aae95828d3478520f4bd73221bcb450ec1a5c0 (diff)
downloadkernel-crypto-bff9a89bcac5b68ac0a1ea856b1726a35ae1eabb.tar.gz
kernel-crypto-bff9a89bcac5b68ac0a1ea856b1726a35ae1eabb.tar.xz
kernel-crypto-bff9a89bcac5b68ac0a1ea856b1726a35ae1eabb.zip
[NETFILTER]: nf_conntrack: endian annotations
Resync with Al Viro's ip_conntrack annotations and fix a missed spot in ip_nat_proto_icmp.c. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_conntrack_tuple.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/net/netfilter/nf_conntrack_tuple.h b/include/net/netfilter/nf_conntrack_tuple.h
index 530ef1f7528..be9dc9a0eb7 100644
--- a/include/net/netfilter/nf_conntrack_tuple.h
+++ b/include/net/netfilter/nf_conntrack_tuple.h
@@ -26,8 +26,8 @@
network order! */
union nf_conntrack_man_l3proto {
u_int32_t all[NF_CT_TUPLE_L3SIZE];
- u_int32_t ip;
- u_int32_t ip6[4];
+ __be32 ip;
+ __be32 ip6[4];
};
/* The protocol-specific manipulable parts of the tuple: always in
@@ -38,16 +38,16 @@ union nf_conntrack_man_proto
u_int16_t all;
struct {
- u_int16_t port;
+ __be16 port;
} tcp;
struct {
- u_int16_t port;
+ __be16 port;
} udp;
struct {
- u_int16_t id;
+ __be16 id;
} icmp;
struct {
- u_int16_t port;
+ __be16 port;
} sctp;
};
@@ -77,16 +77,16 @@ struct nf_conntrack_tuple
u_int16_t all;
struct {
- u_int16_t port;
+ __be16 port;
} tcp;
struct {
- u_int16_t port;
+ __be16 port;
} udp;
struct {
u_int8_t type, code;
} icmp;
struct {
- u_int16_t port;
+ __be16 port;
} sctp;
} u;