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:50:14 +0000 (09:50 -0800)
commit65a3e5af84b62113764ce56392d645a14f8ee947
tree143a3147889d258a05eb304bf400b005942e153e
parent42c7d72194979532723bff0ac575be5fea954026
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