mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sctp: Clean up sctp checksumming code
The sctp crc32c checksum is always generated in little endian. So, we clean up the code to treat it as little endian and remove all the __force casts. Suggested by Herbert Xu. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
06e868066e
commit
4458f04c02
4 changed files with 20 additions and 21 deletions
|
@ -60,7 +60,7 @@ typedef struct sctphdr {
|
|||
__be16 source;
|
||||
__be16 dest;
|
||||
__be32 vtag;
|
||||
__be32 checksum;
|
||||
__le32 checksum;
|
||||
} __attribute__((packed)) sctp_sctphdr_t;
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue