ofproto: Reject invalid input ports in OFPT_PACKET_OUT requests.
authorBen Pfaff <blp@nicira.com>
Thu, 8 Sep 2011 18:25:29 +0000 (11:25 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 2 Nov 2011 15:47:28 +0000 (08:47 -0700)
commite1154f713ec8f47ff38979d76e9456b49b0bc264
treeeaa7a7d615015f77c8ab6f4d863124ba9ac6e982
parent68f36edfe8928be1f80c960abb63474b2ad9f920
ofproto: Reject invalid input ports in OFPT_PACKET_OUT requests.

Some invalid ports (those above the maximum port number supported by the
datapath, including OpenFlow reserved ports that are not translated by OVS
into some other number) will be rejected by the datapath.  It's better to
catch these early and send back an appropriate OpenFlow error code, rather
than to just get EINVAL from the kernel and have to guess at the problem.

Reported-by: Aaron Rosen <arosen@clemson.edu>
include/openflow/nicira-ext.h
ofproto/ofproto-dpif.c
ofproto/ofproto.c