mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
ofp-actions: enforce valid range for table_id in goto_table instruction
Found a bug that OVS allows goto_table_id to be smaller than (or equal to) the current table id where the flow resides. It potentially creates an infinite loop when composing actions for a packet. To fix it, we just let OVS returns an error message to prevent such flow to be programmed. Signed-off-by: Jing Ai <jinga@google.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -490,6 +490,7 @@ enum ofperr ofpacts_pull_openflow11_actions(struct ofpbuf *openflow,
|
||||
struct ofpbuf *ofpacts);
|
||||
enum ofperr ofpacts_pull_openflow11_instructions(struct ofpbuf *openflow,
|
||||
unsigned int instructions_len,
|
||||
uint8_t table_id,
|
||||
struct ofpbuf *ofpacts);
|
||||
enum ofperr ofpacts_check(const struct ofpact[], size_t ofpacts_len,
|
||||
const struct flow *, int max_ports);
|
||||
|
Reference in New Issue
Block a user