2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 13:58:14 +00:00

ofp-print: Verify size of OFPAT_ENQUEUE actions.

This fixes a bug, although not a very serious one.
This commit is contained in:
Ben Pfaff
2010-12-07 16:58:41 -08:00
parent 3080205e8f
commit dab45bfd57

View File

@@ -298,6 +298,10 @@ ofp_print_action(struct ds *string, const struct ofp_action_header *ah,
[OFPAT_SET_TP_DST] = {
sizeof(struct ofp_action_tp_port),
sizeof(struct ofp_action_tp_port),
},
[OFPAT_ENQUEUE] = {
sizeof(struct ofp_action_enqueue),
sizeof(struct ofp_action_enqueue),
}
/* OFPAT_VENDOR is not here, since it would blow up the array size. */
};