Bug 1808: Don't deserialize IPv4 payload in non-first fragments. 34/11034/2
authorShigeru Yasuda <s-yasuda@da.jp.nec.com>
Thu, 11 Sep 2014 11:33:28 +0000 (20:33 +0900)
committerShigeru Yasuda <s-yasuda@da.jp.nec.com>
Fri, 12 Sep 2014 02:25:01 +0000 (02:25 +0000)
commit437c90de7f8f7fd578fb218d4b195162075e7d27
treea414bb73d7e6f5d61f7270dd15e5642acacf0636
parent5834673a28941e470173b5215f56cebdf0cfa2f0
Bug 1808: Don't deserialize IPv4 payload in non-first fragments.

Protocol header, such as TCP header, is present only in the first fragment.
So the payload of IPv4 packet should be treated as raw bytes if the
fragmentation offset is not zero.

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