ofp-util: Make make_echo_request() aware of different OpenFlow versions.
[openvswitch] / utilities / ovs-ofctl.c
index 13dd0e3c339a0f9ff6659cfa4cb1f708e46c4184..2343240bb87095a0681ac445ee75a3a8f6685e30 100644 (file)
@@ -1440,8 +1440,8 @@ ofctl_probe(int argc OVS_UNUSED, char *argv[])
     struct vconn *vconn;
     struct ofpbuf *reply;
 
-    request = make_echo_request();
     open_vconn(argv[1], &vconn);
+    request = make_echo_request(vconn_get_version(vconn));
     run(vconn_transact(vconn, request, &reply), "talking to %s", argv[1]);
     if (reply->size != sizeof(struct ofp_header)) {
         ovs_fatal(0, "reply does not match request");