aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-24 19:38:53 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-24 19:38:53 -0400
commitc80dd2da736ba235c2ca5dcaa00aac6907786c5b (patch)
treed47d94305e17ca6e2b2e7462593241dc7984b317 /net
parent142071b83426674ef2dab98cf2a6627328d0988e (diff)
parent534f81a5068799799e264fd162e9488a129f98d4 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_proto_tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index f3fd154d1ddd..56ac4ee77a1d 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -15,6 +15,7 @@
15#include <linux/skbuff.h> 15#include <linux/skbuff.h>
16#include <linux/ipv6.h> 16#include <linux/ipv6.h>
17#include <net/ip6_checksum.h> 17#include <net/ip6_checksum.h>
18#include <asm/unaligned.h>
18 19
19#include <net/tcp.h> 20#include <net/tcp.h>
20 21
@@ -466,7 +467,7 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,
466 for (i = 0; 467 for (i = 0;
467 i < (opsize - TCPOLEN_SACK_BASE); 468 i < (opsize - TCPOLEN_SACK_BASE);
468 i += TCPOLEN_SACK_PERBLOCK) { 469 i += TCPOLEN_SACK_PERBLOCK) {
469 tmp = ntohl(*((__be32 *)(ptr+i)+1)); 470 tmp = get_unaligned_be32((__be32 *)(ptr+i)+1);
470 471
471 if (after(tmp, *sack)) 472 if (after(tmp, *sack))
472 *sack = tmp; 473 *sack = tmp;