Send OFPET_BAD_INSTRUCTION/OFPBIC_BAD_TABLE_ID if table is invalid in goto table instruction.
Signed-off-by: Selvamuthukumar <[email protected]> --- lib/ofp-actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 0a5045a..ef6d83f 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -5188,7 +5188,7 @@ ofpact_check__(enum ofputil_protocol *usable_protocols, struct ofpact *a, uint8_t goto_table = ofpact_get_GOTO_TABLE(a)->table_id; if ((table_id != 255 && goto_table <= table_id) || (n_tables != 255 && goto_table >= n_tables)) { - return OFPERR_OFPBRC_BAD_TABLE_ID; + return OFPERR_OFPBIC_BAD_TABLE_ID; } return 0; } -- 1.8.3.2 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
