diff options
author | Grigore Ion <ion.grigore@freescale.com> | 2015-10-22 15:02:58 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-12-07 14:07:46 +0300 |
commit | 0043ff8f7dd86a0c1e143412ceb5a14c8ae9c727 (patch) | |
tree | cefc4045ed755b98637b36f84c065e9941de6fe8 /helper/hashtable.c | |
parent | 7c957d4fb6608049ec06541d19800c786ef3f198 (diff) |
helper : Fix UDP checksum computation
This patch fixes the following problems:
- checksum computation for LE platforms
- checksum is computed in the CPU endianness. The returned result
must be converted to the BE ordering when it is used to update the
UDP checksum in a packet.
- checksum computation for packets having the UDP length not a
multiple of 2.
Signed-off-by: Grigore Ion <ion.grigore@freescale.com>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/hashtable.c')
0 files changed, 0 insertions, 0 deletions