diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-07-08 12:21:47 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-07-09 11:09:17 +0100 |
commit | d903bca9bc542bd6d60019f9f761be15ad79c956 (patch) | |
tree | 510a51eccad4bf34a01cad162179817a0d793af1 /fs | |
parent | 8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff) | |
download | linux-d903bca9bc542bd6d60019f9f761be15ad79c956.tar.bz2 |
metag: checksum.h: fix carry in csum_tcpudp_nofold
In csum_tcpudp_nofold, add 1 if the carry bit is set after adding the
destination IP address (32 bits) to the checksum (16 bits).
The lack of carry handling for this particular addition meant that a
destination address of *.*.255.255 (e.g. certain broadcasts) sometimes
resulted in an incorrect checksum. This bug has been present in the Meta
port since the code was written in the 2.4 days.
Reported-by: Marcin Nowakowski <Marcin.Nowakowski@pure.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions