aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c11
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
1541struct __sctp_missing { 1540struct __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. */
2367static void sctp_add_asconf_response(struct sctp_chunk *chunk, __u32 crr_id, 2366static 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;