ofp-parse: Check port number only after parsing it in parse_output().
authorDaisuke Kotani <kotani@net.ist.i.kyoto-u.ac.jp>
Mon, 23 Dec 2013 09:19:48 +0000 (18:19 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Dec 2013 17:39:44 +0000 (09:39 -0800)
commit2918176868f0b12eb8e705638c50befd69ac2f4b
tree15e5e30b26fa4aac3d5d482daae0e46a7a9580db
parentcde1c287b1bbbc128c3378f194a338399438ce51
ofp-parse: Check port number only after parsing it in parse_output().

This patch allows to set max_len to UINT16_MAX in parse_output
if output port is OFPP_CONTROLLER.

Signed-off-by: Daisuke Kotani <kotani@net.ist.i.kyoto-u.ac.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-parse.c