summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:26:08 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:27:12 -0800
commit962c837275e8a8c1df41f1882e971636093cdee4 (patch)
treee46cef772f088ec4aeeca5f7197d85796e864431 /net
parent3dbe86566ed262dae3b5472b9360cb5b65d42716 (diff)
downloadop-kernel-dev-962c837275e8a8c1df41f1882e971636093cdee4.zip
op-kernel-dev-962c837275e8a8c1df41f1882e971636093cdee4.tar.gz
[SCTP]: Netfilter sctp annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/xt_sctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c
index 7956aca..71bf036 100644
--- a/net/netfilter/xt_sctp.c
+++ b/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",
++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);
OpenPOWER on IntegriCloud