]> err.no Git - linux-2.6/commitdiff
[SCTP]: Netfilter sctp annotations.
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Nov 2006 01:26:08 +0000 (17:26 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:27:12 +0000 (21:27 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nf_conntrack_sctp.h
net/netfilter/xt_sctp.c

index b8994d9fd1a9a4a09d4e1e75f31a89a6a57de968..5cf2c115cce4c2ba80f8763df9bda154800d4096 100644 (file)
@@ -20,7 +20,7 @@ struct ip_ct_sctp
 {
        enum sctp_conntrack state;
 
-       u_int32_t vtag[IP_CT_DIR_MAX];
+       __be32 vtag[IP_CT_DIR_MAX];
        u_int32_t ttag[IP_CT_DIR_MAX];
 };
 
index 7956acaaa24bffa7795c1d1ac6324117489a29b5..71bf036f833c60ce433e0a20de3bd50561160aec 100644 (file)
@@ -71,7 +71,7 @@ match_packet(const struct sk_buff *skb,
                duprintf("Chunk num: %d\toffset: %d\ttype: %d\tlength: %d\tflags: %x\n", 
                                ++i, offset, sch->type, htons(sch->length), sch->flags);
 
-               offset += (htons(sch->length) + 3) & ~3;
+               offset += (ntohs(sch->length) + 3) & ~3;
 
                duprintf("skb->len: %d\toffset: %d\n", skb->len, offset);