- flow_extract(packet, 0, 1, &flow);
- cls_rule_init_exact(&flow, 0, &rule);
- cls_rule_to_match(&rule, NXFF_OPENFLOW10, &extracted_match);
+ flow_extract(packet, NULL, &flow);
+ flow.in_port.ofp_port = u16_to_ofp(1);
+
+ match_wc_init(&match, &flow);
+ ofputil_match_to_ofp10_match(&match, &extracted_match);