From e0c91c0cb0d644058bac34267f03d08d4595444c Mon Sep 17 00:00:00 2001 From: SUGYO Kazushi Date: Tue, 18 Dec 2012 21:51:11 +0900 Subject: [PATCH] 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 --- AUTHORS | 1 + lib/ofp-util.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 */ -- 2.47.0