Versions Compared

Key

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

...

Code Block
titleOFMatch Wildcards Example


| (i) | This documentation is for pre-v1.0 releases of Floodlight, such as v0.9 and v0.91. Wildcards are handled for you behind the scenes in Floodlight v1.0. |

        OFMatch match = new OFMatch()

        match.setNetworkSource(IPv4.toIPv4Address("192.168.12.0"));      // (1)
        match.setNetworkDestination(IPv4.toIPv4Address("10.0.0.0"));       // (2)
        match.setWildcards(Wildcards.FULL.withNwSrcMask(24).withNwDstMask(8));      // (3) 

...