From: SUGYO Kazushi Date: Tue, 18 Dec 2012 12:51:11 +0000 (+0900) Subject: ofp-util: features reply of openflow13 does not have ports X-Git-Tag: sliver-openvswitch-1.9.90-3~10^2~63 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e0c91c0cb0d644058bac34267f03d08d4595444c;p=sliver-openvswitch.git ofp-util: features reply of openflow13 does not have ports Signed-off-by: SUGYO Kazushi [blp@nicira.com moved the test from ofproto.c to ofp-util.c] Signed-off-by: Ben Pfaff --- diff --git a/AUTHORS b/AUTHORS index ca02ca0ce..90917c22b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -64,6 +64,7 @@ Sanjay Sane ssane@nicira.com Shan Wei davidshan@tencent.com Shih-Hao Li shli@nicira.com Simon Horman horms@verge.net.au +SUGYO Kazushi sugyo.org@gmail.com Tadaaki Nagao nagao@stratosphere.co.jp Tetsuo NAKAGAWA nakagawa@mxc.nes.nec.co.jp Thomas Goirand zigo@debian.org diff --git a/lib/ofp-util.c b/lib/ofp-util.c index e79cc7215..075557e26 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3197,7 +3197,9 @@ ofputil_put_switch_features_port(const struct ofputil_phy_port *pp, { const struct ofp_header *oh = b->data; - ofputil_put_phy_port(oh->version, pp, b); + if (oh->version < OFP13_VERSION) { + ofputil_put_phy_port(oh->version, pp, b); + } } /* ofputil_port_status */