James Hogan d903bca9bc 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>
2013-07-09 11:09:17 +01:00
..
2013-03-15 13:21:05 +00:00
2013-03-02 20:09:54 +00:00
2013-05-09 09:59:16 -07:00
2013-03-02 20:09:54 +00:00
2013-03-02 20:09:54 +00:00
2013-03-15 13:21:05 +00:00