commit | 89c4a64d58d20704c197692f376c7faf05a11c1f | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu Apr 13 17:43:52 2017 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Fri Apr 14 22:52:59 2017 +0000 |
tree | 26e3f9e60da8b96e996355eeb76fef10f6615ac3 | |
parent | fb50d09dde36c0d9fcbb8b86e07648d625e15db9 [diff] |
Support IP deserialization when PACKET_IN carries Ethernet FCS Some switches carry Ethernet FCS in the PACKET_IN. In that case, Ethernet FCS should not be treated as IP payload. payload length: the length specified in IP header remaining length: the actual remaining bytes payload < remaining: padding or Ethernet FCS exists, use payload length payload = remaining: usual case, use either one payload > remaining: fragmented packets, use remaining length In addition, - Fix unit test. TotalLen should never be smaller than headerLen * 4 - Refactoring unit tests Change-Id: I5d4736ad89ea2ab4ac3bd0cfaeb91da5d974db64
ONOS is a new SDN network operating system designed for high availability, performance, scale-out.