builder.setTpDst(4096);
MatchV10 match = builder.build();
matchSerializer.serialize(match, out);
-
+
Assert.assertEquals("Wrong wildcards", 2361553, out.readUnsignedInt());
Assert.assertEquals("Wrong in-port", 6653, out.readUnsignedShort());
byte[] dlSrc = new byte[6];
Assert.assertEquals("Wrong tp-src", 2048, out.readUnsignedShort());
Assert.assertEquals("Wrong tp-dst", 4096, out.readUnsignedShort());
}
-
+
/**
* Testing correct serialization of ofp_match
*/
builder.setTpDst(4096);
MatchV10 match = builder.build();
matchSerializer.serialize(match, out);
-
+
Assert.assertEquals("Wrong wildcards", 3678463, out.readUnsignedInt());
Assert.assertEquals("Wrong in-port", 6653, out.readUnsignedShort());
byte[] dlSrc = new byte[6];