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:09 +0000 (09:50 -0800)
commitf0e047db8c208d85f97d2674bd2e6b2b30342c09
treeabd88caaf669cb949831c5427a62a855133bf64a
parent18f0d729e26787da30fe949e68742357847c157c
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