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:
committed by
David S. Miller
parent
06e868066e
commit
4458f04c02
@@ -60,7 +60,7 @@ typedef struct sctphdr {
|
||||
__be16 source;
|
||||
__be16 dest;
|
||||
__be32 vtag;
|
||||
__be32 checksum;
|
||||
__le32 checksum;
|
||||
} __attribute__((packed)) sctp_sctphdr_t;
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
Reference in New Issue
Block a user