{
rule->flow = *flow;
flow_wildcards_init(&rule->wc, wildcards);
- cls_rule_zero_wildcards(rule);
+ cls_rule_zero_wildcarded_fields(rule);
}
/* Converts the flow in 'flow' into a cls_rule in 'rule', with the given
* restore the invariant in a cls_rule whose 'wc' member is modified by hand.
*/
void
-cls_rule_zero_wildcards(struct cls_rule *rule)
+cls_rule_zero_wildcarded_fields(struct cls_rule *rule)
{
zero_wildcards(&rule->flow, &rule->wc);
}
* invariant that the classifier depends on:
*
* - If a bit or a field is wildcarded in 'wc', then the corresponding bit or
- * field in 'flow' is set to all-0-bits. (The cls_rule_zero_wildcards()
- * function can be used to restore this invariant after adding wildcards.)
+ * field in 'flow' is set to all-0-bits. (The
+ * cls_rule_zero_wildcarded_fields() function can be used to restore this
+ * invariant after adding wildcards.)
*/
struct cls_rule {
struct hmap_node hmap_node; /* Within struct cls_table 'rules'. */
void cls_rule_from_match(const struct ofp_match *, unsigned int priority,
int flow_format, uint64_t cookie, struct cls_rule *);
-void cls_rule_zero_wildcards(struct cls_rule *);
+void cls_rule_zero_wildcarded_fields(struct cls_rule *);
char *cls_rule_to_string(const struct cls_rule *);
void cls_rule_print(const struct cls_rule *);