X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.c;h=11b0f159ec805a053d8208ed79019f0aefa39576;hb=82172632ad99204b58859edc93d5a76e63d4d73f;hp=3c004dcd175976d3d70b0f08fa18177302229cc9;hpb=5fe0ec3dfc8c9006f98a98026ad2844440f5704b;p=sliver-openvswitch.git diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 3c004dcd1..11b0f159e 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2211,7 +2211,8 @@ validate_actions(const union ofp_action *actions, size_t n_actions, case OFPUTIL_OFPAT_ENQUEUE: port = ntohs(((const struct ofp_action_enqueue *) a)->port); - if (port >= max_ports && port != OFPP_IN_PORT) { + if (port >= max_ports && port != OFPP_IN_PORT + && port != OFPP_LOCAL) { error = ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_OUT_PORT); } break;