Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the UDP packet were to also contain another packet/header within it, we could compose it next (e.g. DHCP); however, let's assume this is as far as we go and let's create some random data for the payload of the UDP packet (think iperf -u). Any data can be set as a payload using the net.floodlightcontroller.packet.Data class. Furthermore, any packet not defined in net.floodlightcontroller.packet can be created manually using a Data. If you feel the packet you're trying to create should be included in net.floodlightcontroller.packet, please let us know at floodlight-dev@openflowhub.orgWrite to our email list.

Code Block
languagejava
Data l7 = new Data();
l7.setData(new byte[1000]);

...