X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-util.c;h=11b0f159ec805a053d8208ed79019f0aefa39576;hb=fbac791aea04553de6efa02e78a9724d85cccb88;hp=3c004dcd175976d3d70b0f08fa18177302229cc9;hpb=2486e66ab570c261ba931c8333f1488f8eba5903;p=openvswitch diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 3c004dcd..11b0f159 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;