From: Justin Pettit Date: Mon, 30 Jun 2008 22:58:44 +0000 (-0700) Subject: Don't allow adding a flow entry with an output port of OFPP_NONE. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=91cfc8f5dcde72a1b0d712f49eadd0aafab23af4;p=sliver-openvswitch.git Don't allow adding a flow entry with an output port of OFPP_NONE. --- diff --git a/datapath/forward.c b/datapath/forward.c index e0b07011f..fcbc59b31 100644 --- a/datapath/forward.c +++ b/datapath/forward.c @@ -371,7 +371,8 @@ add_flow(struct sw_chain *chain, const struct ofp_flow_mod *ofm) const struct ofp_action *a = &ofm->actions[i]; if (a->type == htons(OFPAT_OUTPUT) - && a->arg.output.port == htons(OFPP_TABLE)) { + && (a->arg.output.port == htons(OFPP_TABLE) + || a->arg.output.port == htons(OFPP_NONE))) { /* xxx Send fancy new error message? */ goto error; }