case ODPAT_SET_TP_DST:
ds_put_format(ds, "set_tp_dst(%"PRIu16")", ntohs(a->tp_port.tp_port));
break;
+ case ODPAT_SET_PRIORITY:
+ ds_put_format(ds, "set_priority(0x%"PRIx32")", a->priority.priority);
+ break;
+ case ODPAT_POP_PRIORITY:
+ ds_put_cstr(ds, "pop_priority");
+ break;
default:
ds_put_format(ds, "***bad action 0x%"PRIx16"***", a->type);
break;
break;
}
+ case OFPAT_ENQUEUE: {
+ struct ofp_action_enqueue *ea = (struct ofp_action_enqueue *)ah;
+ unsigned int port = ntohs(ea->port);
+ unsigned int queue_id = ntohl(ea->queue_id);
+ ds_put_format(string, "enqueue:");
+ if (port != OFPP_IN_PORT) {
+ ds_put_format(string, "%u", port);
+ } else {
+ ds_put_cstr(string, "IN_PORT");
+ }
+ ds_put_format(string, "q%u", queue_id);
+ break;
+ }
+
case OFPAT_SET_VLAN_VID: {
struct ofp_action_vlan_vid *va = (struct ofp_action_vlan_vid *)ah;
ds_put_format(string, "mod_vlan_vid:%"PRIu16, ntohs(va->vlan_vid));