mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 07:15:17 +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:
@@ -298,6 +298,10 @@ ofp_print_action(struct ds *string, const struct ofp_action_header *ah,
|
|||||||
[OFPAT_SET_TP_DST] = {
|
[OFPAT_SET_TP_DST] = {
|
||||||
sizeof(struct ofp_action_tp_port),
|
sizeof(struct ofp_action_tp_port),
|
||||||
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. */
|
/* OFPAT_VENDOR is not here, since it would blow up the array size. */
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user