All of these unit test failures indicated bugs in the tests, not bugs in
the code under test.
print FLOWS pack('Nn',
0, # wildcards
- 0); # in_port
+ 1); # in_port
print FLOWS pack_ethaddr($flow{DL_SRC});
print FLOWS pack_ethaddr($flow{DL_DST});
print FLOWS pack('nnCxNNnn',
}
rule = xcalloc(1, sizeof *rule);
- cls_rule_from_flow(&rule->cls_rule, &flow, wildcards, priority);
+ cls_rule_from_flow(&rule->cls_rule, &flow, wildcards,
+ !wildcards ? UINT_MAX : priority);
return rule;
}
ofp_fatal(retval, "error reading pcap file");
}
- flow_extract(packet, 0, &flow);
+ flow_extract(packet, 1, &flow);
flow_to_match(&flow, 0, &extracted_match);
if (memcmp(&expected_match, &extracted_match, sizeof expected_match)) {