diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-02-13 08:33:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 00:03:10 -0800 |
commit | 4458f04c02a46c679a90ef71f866a415c192deb4 (patch) | |
tree | b08aa476ab4c525ab3cb33cea6114cb262cb2941 /include/linux/sctp.h | |
parent | 06e868066e3b5828383eb40ff4d1c0029100b0b5 (diff) | |
download | op-kernel-dev-4458f04c02a46c679a90ef71f866a415c192deb4.zip op-kernel-dev-4458f04c02a46c679a90ef71f866a415c192deb4.tar.gz |
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>
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r-- | include/linux/sctp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index bd50b37..c2731bf 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -60,7 +60,7 @@ typedef struct sctphdr { __be16 source; __be16 dest; __be32 vtag; - __be32 checksum; + __le32 checksum; } __attribute__((packed)) sctp_sctphdr_t; #ifdef __KERNEL__ |