import org.slf4j.LoggerFactory;\r
\r
/**\r
+ * Serializes ofp_match (OpenFlow v1.3) and its oxm_fields structures\r
* @author michal.polkorab\r
- *\r
+ * @author timotej.kubas\r
*/\r
public class MatchSerializer {\r
\r
private static final Logger LOGGER = LoggerFactory.getLogger(MatchSerializer.class);\r
\r
/**\r
- * Encodes OF match\r
+ * Encodes match (OpenFlow v1.3)\r
* @param match ofp_match object\r
* @param out output ByteBuf\r
*/\r
\r
/**\r
* Encodes MatchEntries\r
- * @param matchEntries\r
- * @param out\r
+ * @param matchEntries list of match entries (oxm_fields)\r
+ * @param out output ByteBuf\r
*/\r
public static void encodeMatchEntries(List<MatchEntries> matchEntries, ByteBuf out) {\r
if (matchEntries == null) {\r
}\r
\r
/**\r
- * Computes length of ofp_match structure (in bytes)\r
+ * Computes length of match (in bytes)\r
* @param match\r
* @return length of ofp_match (excluding padding)\r
*/\r
\r
/**\r
* Computes length of MatchEntries (in bytes)\r
- * @param matchEntries\r
+ * @param matchEntries list of match entries (oxm_fields)\r
* @return length of MatchEntries\r
*/\r
public static int computeMatchEntriesLength(List<MatchEntries> matchEntries) {\r