Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369822
b: refs/heads/master
c: eee1d5a
h: refs/heads/master
v: v3
  • Loading branch information
Simon Horman authored and Pablo Neira Ayuso committed Apr 29, 2013
1 parent c121772 commit 43789b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00bd1cc24a7dd295ee095dc50791aab6ede46c7a
refs/heads/master: eee1d5a14780b9391ec51f3feaf4cffb521ddbb1
2 changes: 1 addition & 1 deletion trunk/include/net/sctp/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static inline __u32 sctp_update_cksum(__u8 *buffer, __u16 length, __u32 crc32)
return sctp_crc32c(crc32, buffer, length);
}

static inline __le32 sctp_end_cksum(__be32 crc32)
static inline __le32 sctp_end_cksum(__u32 crc32)
{
return cpu_to_le32(~crc32);
}
5 changes: 2 additions & 3 deletions trunk/net/netfilter/nf_nat_proto_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sctp_manip_pkt(struct sk_buff *skb,
{
struct sk_buff *frag;
sctp_sctphdr_t *hdr;
__be32 crc32;
__u32 crc32;

if (!skb_make_writable(skb, hdroff + sizeof(*hdr)))
return false;
Expand All @@ -55,8 +55,7 @@ sctp_manip_pkt(struct sk_buff *skb,
skb_walk_frags(skb, frag)
crc32 = sctp_update_cksum((u8 *)frag->data, skb_headlen(frag),
crc32);
crc32 = sctp_end_cksum(crc32);
hdr->checksum = crc32;
hdr->checksum = sctp_end_cksum(crc32);

return true;
}
Expand Down

0 comments on commit 43789b6

Please sign in to comment.