Commit 962c837275e8a8c1df41f1882e971636093cdee4

Authored by Al Viro
Committed by David S. Miller
1 parent 3dbe86566e

[SCTP]: Netfilter sctp annotations.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

include/linux/netfilter/nf_conntrack_sctp.h
... ... @@ -20,7 +20,7 @@
20 20 {
21 21 enum sctp_conntrack state;
22 22  
23   - u_int32_t vtag[IP_CT_DIR_MAX];
  23 + __be32 vtag[IP_CT_DIR_MAX];
24 24 u_int32_t ttag[IP_CT_DIR_MAX];
25 25 };
26 26  
net/netfilter/xt_sctp.c
... ... @@ -71,7 +71,7 @@
71 71 duprintf("Chunk num: %d\toffset: %d\ttype: %d\tlength: %d\tflags: %x\n",
72 72 ++i, offset, sch->type, htons(sch->length), sch->flags);
73 73  
74   - offset += (htons(sch->length) + 3) & ~3;
  74 + offset += (ntohs(sch->length) + 3) & ~3;
75 75  
76 76 duprintf("skb->len: %d\toffset: %d\n", skb->len, offset);
77 77