test-csum: endianess fix
authorFlavio Leitner <fbl@redhat.com>
Fri, 10 Apr 2015 14:07:50 +0000 (11:07 -0300)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Apr 2015 15:45:45 +0000 (08:45 -0700)
commit2f86335b8a143a475ab44492ca18927876e36a0c
treef763f877e2ab4ef73997ca415318c9abec44c29e
parentabcf3ef4c3f75963f46a11501685363e3ceb7c0e
test-csum: endianess fix

The math is done in network byte order so the 32 bits won't
match between big and little endian, so the assert fails.

Reduce to 16 bits and then compare to the converted constant.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
tests/test-csum.c