diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:26:34 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:27:13 -0500 |
commit | 9f81bcd9429e9bb4006eb9b7df276706c5df926d (patch) | |
tree | 1f2f5ddc1c22d2b771121e7bf64afc5c837b1e0d /net/sctp/sm_make_chunk.c | |
parent | 962c837275e8a8c1df41f1882e971636093cdee4 (diff) |
[SCTP]: More trivial 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/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 9674e6e3205b..51cab806abd8 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -775,7 +775,7 @@ struct sctp_chunk *sctp_make_abort_no_data( | |||
775 | const struct sctp_chunk *chunk, __u32 tsn) | 775 | const struct sctp_chunk *chunk, __u32 tsn) |
776 | { | 776 | { |
777 | struct sctp_chunk *retval; | 777 | struct sctp_chunk *retval; |
778 | __u32 payload; | 778 | __be32 payload; |
779 | 779 | ||
780 | retval = sctp_make_abort(asoc, chunk, sizeof(sctp_errhdr_t) | 780 | retval = sctp_make_abort(asoc, chunk, sizeof(sctp_errhdr_t) |
781 | + sizeof(tsn)); | 781 | + sizeof(tsn)); |
@@ -1195,10 +1195,9 @@ void sctp_chunk_assign_ssn(struct sctp_chunk *chunk) | |||
1195 | ssn = sctp_ssn_next(&chunk->asoc->ssnmap->out, sid); | 1195 | ssn = sctp_ssn_next(&chunk->asoc->ssnmap->out, sid); |
1196 | else | 1196 | else |
1197 | ssn = sctp_ssn_peek(&chunk->asoc->ssnmap->out, sid); | 1197 | ssn = sctp_ssn_peek(&chunk->asoc->ssnmap->out, sid); |
1198 | ssn = htons(ssn); | ||
1199 | } | 1198 | } |
1200 | 1199 | ||
1201 | chunk->subh.data_hdr->ssn = ssn; | 1200 | chunk->subh.data_hdr->ssn = htons(ssn); |
1202 | chunk->has_ssn = 1; | 1201 | chunk->has_ssn = 1; |
1203 | } | 1202 | } |
1204 | 1203 | ||
@@ -1539,8 +1538,8 @@ malformed: | |||
1539 | ********************************************************************/ | 1538 | ********************************************************************/ |
1540 | 1539 | ||
1541 | struct __sctp_missing { | 1540 | struct __sctp_missing { |
1542 | __u32 num_missing; | 1541 | __be32 num_missing; |
1543 | __u16 type; | 1542 | __be16 type; |
1544 | } __attribute__((packed)); | 1543 | } __attribute__((packed)); |
1545 | 1544 | ||
1546 | /* | 1545 | /* |
@@ -2364,7 +2363,7 @@ static struct sctp_chunk *sctp_make_asconf_ack(const struct sctp_association *as | |||
2364 | } | 2363 | } |
2365 | 2364 | ||
2366 | /* Add response parameters to an ASCONF_ACK chunk. */ | 2365 | /* Add response parameters to an ASCONF_ACK chunk. */ |
2367 | static void sctp_add_asconf_response(struct sctp_chunk *chunk, __u32 crr_id, | 2366 | static void sctp_add_asconf_response(struct sctp_chunk *chunk, __be32 crr_id, |
2368 | __be16 err_code, sctp_addip_param_t *asconf_param) | 2367 | __be16 err_code, sctp_addip_param_t *asconf_param) |
2369 | { | 2368 | { |
2370 | sctp_addip_param_t ack_param; | 2369 | sctp_addip_param_t ack_param; |