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:
Vlad Yasevich 2009-02-13 08:33:42 +00:00 committed by David S. Miller
parent 06e868066e
commit 4458f04c02
4 changed files with 20 additions and 21 deletions

View file

@ -60,7 +60,7 @@ typedef struct sctphdr {
__be16 source;
__be16 dest;
__be32 vtag;
__be32 checksum;
__le32 checksum;
} __attribute__((packed)) sctp_sctphdr_t;
#ifdef __KERNEL__