ofp-util: features reply of openflow13 does not have ports
authorSUGYO Kazushi <sugyo.org@gmail.com>
Tue, 18 Dec 2012 12:51:11 +0000 (21:51 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 27 Dec 2012 18:48:06 +0000 (10:48 -0800)
Signed-off-by: SUGYO Kazushi <sugyo.org@gmail.com>
[blp@nicira.com moved the test from ofproto.c to ofp-util.c]
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/ofp-util.c

diff --git a/AUTHORS b/AUTHORS
index ca02ca0..90917c2 100644 (file)
--- 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
index e79cc72..075557e 100644 (file)
@@ -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);
+    }
 }
 \f
 /* ofputil_port_status */