aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/netfilter/ip_nat_helper.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-02-14 13:58:42 +0100
committerAdrian Bunk <bunk@stusta.de>2007-02-14 13:58:42 +0100
commit2f6d2c9b7d870de96a915748178aa02596ac19c1 (patch)
treeb1e89ac341c66542d3bcf53dcc0dac06be87fba4 /net/ipv4/netfilter/ip_nat_helper.c
parent844affa5745e38d3ac2e11d4cee79deed06df0e2 (diff)
[TCP]: struct tcp_sack_block annotations
Some of the instances of tcp_sack_block are host-endian, some - net-endian. Define struct tcp_sack_block_wire identical to struct tcp_sack_block with u32 replaced with __be32; annotate uses of tcp_sack_block replacing net-endian ones with tcp_sack_block_wire. Change is obviously safe since for cc(1) __be32 is typedefed to u32. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net/ipv4/netfilter/ip_nat_helper.c')
-rw-r--r--net/ipv4/netfilter/ip_nat_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_nat_helper.c b/net/ipv4/netfilter/ip_nat_helper.c
index 5d506e0564d5..2ba583c795da 100644
--- a/net/ipv4/netfilter/ip_nat_helper.c
+++ b/net/ipv4/netfilter/ip_nat_helper.c
@@ -268,7 +268,7 @@ sack_adjust(struct sk_buff *skb,
struct ip_nat_seq *natseq)
{
while (sackoff < sackend) {
- struct tcp_sack_block *sack;
+ struct tcp_sack_block_wire *sack;
u_int32_t new_start_seq, new_end_seq;
sack = (void *)skb->data + sackoff;