Browse Source

[SCTP]: Netfilter sctp annotations.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 years ago
parent
commit
962c837275
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/linux/netfilter/nf_conntrack_sctp.h
  2. 1 1
      net/netfilter/xt_sctp.c

+ 1 - 1
include/linux/netfilter/nf_conntrack_sctp.h

@@ -20,7 +20,7 @@ struct ip_ct_sctp
 {
 {
 	enum sctp_conntrack state;
 	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];
 	u_int32_t ttag[IP_CT_DIR_MAX];
 };
 };
 
 

+ 1 - 1
net/netfilter/xt_sctp.c

@@ -71,7 +71,7 @@ match_packet(const struct sk_buff *skb,
 		duprintf("Chunk num: %d\toffset: %d\ttype: %d\tlength: %d\tflags: %x\n", 
 		duprintf("Chunk num: %d\toffset: %d\ttype: %d\tlength: %d\tflags: %x\n", 
 				++i, offset, sch->type, htons(sch->length), sch->flags);
 				++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);
 		duprintf("skb->len: %d\toffset: %d\n", skb->len, offset);