commit | 1c87ae05b337f789b2e56bbb273758dfb12fb2ef | [log] [tgz] |
---|---|---|
author | Ajay Dudani <adudani@codeaurora.org> | Wed May 22 21:16:59 2013 -0700 |
committer | Vineeta Srivastava <vsrivastava@google.com> | Thu Dec 12 11:24:26 2013 -0800 |
tree | dc134d88e869a3847eac5d35138c26360b9fd8a1 | |
parent | 5f64d528be2ca7229c0e9ce00837ac0fa4da2e54 [diff] |
libnetutils: Expect 1's complement if computed UDP checksum is zero Per http://tools.ietf.org/html/rfc768: If the computed checksum is zero, it is transmitted as all ones (the equivalent in one's complement arithmetic). An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care). Bug: 10642341 Change-Id: Ib6296dcf3f420f87227047a645c99d9f7ea0d437