diff options
Diffstat (limited to 'net/sctp/output.c')
-rw-r--r-- | net/sctp/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index 9a63a3fb9011..45684646b1db 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c | |||
@@ -365,7 +365,7 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
365 | struct sctp_transport *tp = packet->transport; | 365 | struct sctp_transport *tp = packet->transport; |
366 | struct sctp_association *asoc = tp->asoc; | 366 | struct sctp_association *asoc = tp->asoc; |
367 | struct sctphdr *sh; | 367 | struct sctphdr *sh; |
368 | __u32 crc32 = 0; | 368 | __be32 crc32 = __constant_cpu_to_be32(0); |
369 | struct sk_buff *nskb; | 369 | struct sk_buff *nskb; |
370 | struct sctp_chunk *chunk, *tmp; | 370 | struct sctp_chunk *chunk, *tmp; |
371 | struct sock *sk; | 371 | struct sock *sk; |
@@ -538,7 +538,7 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
538 | /* 3) Put the resultant value into the checksum field in the | 538 | /* 3) Put the resultant value into the checksum field in the |
539 | * common header, and leave the rest of the bits unchanged. | 539 | * common header, and leave the rest of the bits unchanged. |
540 | */ | 540 | */ |
541 | sh->checksum = htonl(crc32); | 541 | sh->checksum = crc32; |
542 | 542 | ||
543 | /* IP layer ECN support | 543 | /* IP layer ECN support |
544 | * From RFC 2481 | 544 | * From RFC 2481 |