Bug 1805: Fixed 2 bugs in ICMP.computeChecksum(). 24/11024/1
authorShigeru Yasuda <s-yasuda@da.jp.nec.com>
Thu, 11 Sep 2014 06:50:24 +0000 (15:50 +0900)
committerShigeru Yasuda <s-yasuda@da.jp.nec.com>
Thu, 11 Sep 2014 06:50:24 +0000 (15:50 +0900)
commit6d8b00f5a86b543be5d9fa300970383c128250d3
treed2789f1ca17abe89b6c756c9b978831d73b64fad
parent622a595aed303b6a0bdbd39554abddcb46549f42
Bug 1805: Fixed 2 bugs in ICMP.computeChecksum().

  * Fixed a bug that caused ArrayIndexOutOfBoundsException if the size
    of the payload was odd.
  * Fixed a bug that generated incorrect checksum if the 16-bit checksum
    overflowed more than 255 times.

Change-Id: I8f26cc41dec2d5ba64c3ab31e66a846dfbea7bc5
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/packet/ICMP.java
opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/packet/ICMPTest.java