Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63624
b: refs/heads/master
c: 5f8f1c3
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Vlad Yasevich committed Aug 2, 2007
1 parent 6ae3831 commit 168556d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 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: aecedeab6fcf914929cd8ff6fa0b8ae9bfdf3d30
refs/heads/master: 5f8f1c3c87e44f1bd0180cf19d0e7c83d062b4dc
3 changes: 0 additions & 3 deletions trunk/net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,12 @@ void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code,
const void *payload, size_t paylen)
{
sctp_errhdr_t err;
int padlen;
__u16 len;

/* Cause code constants are now defined in network order. */
err.cause = cause_code;
len = sizeof(sctp_errhdr_t) + paylen;
padlen = len % 4;
err.length = htons(len);
len += padlen;
chunk->subh.err_hdr = sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err);
sctp_addto_chunk(chunk, paylen, payload);
}
Expand Down

0 comments on commit 168556d

Please sign in to comment.