[ovs-dev] [PATCH] ofproto: features reply of openflow13 does not have ports
SUGYO Kazushi
sugyo.org at gmail.com
Tue Dec 18 12:51:11 UTC 2012
Signed-off-by: SUGYO Kazushi <sugyo.org at gmail.com>
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index f95d6ef..cbabae9 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -2245,8 +2245,11 @@ handle_features_request(struct ofconn *ofconn, const stru
features.auxiliary_id = 0;
b = ofputil_encode_switch_features(&features, ofconn_get_protocol(ofconn),
oh->xid);
- HMAP_FOR_EACH (port, hmap_node, &ofproto->ports) {
- ofputil_put_switch_features_port(&port->pp, b);
+ /* features reply of openflow13 does not have ports */
+ if (oh->version < OFP13_VERSION
+ HMAP_FOR_EACH (port, hmap_node, &ofproto->ports) {
+ ofputil_put_switch_features_port(&port->pp, b);
+ }
}
ofconn_send_reply(ofconn, b);
--
More information about the dev
mailing list