diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-01-22 14:52:23 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-17 09:28:52 -0800 |
commit | 3d137641bbf5fcd5f45ceba31ea9f7d6f01fb22d (patch) | |
tree | d5dd3facaffde86ecea476472653da30257b53a3 /net/sctp/outqueue.c | |
parent | 489a11f8d0e81f0422752bddf3826543d243952e (diff) |
sctp: Fix crc32c calculations on big-endian arhes.
[ Upstream commit 9c5ff5f75d0d0a1c7928ecfae3f38418b51a88e3 ]
crc32c algorithm provides a byteswaped result. On little-endian
arches, the result ends up in big-endian/network byte order.
On big-endinan arches, the result ends up in little-endian
order and needs to be byte swapped again. Thus calling cpu_to_le32
gives the right output.
Tested-by: Jukka Taimisto <jukka.taimisto@mail.suomi.net>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/sctp/outqueue.c')
0 files changed, 0 insertions, 0 deletions