ofproto: Define official OpenFlow port number.
[sliver-openvswitch.git] / lib / vconn-stream.c
index 23145ea..027f48f 100644 (file)
@@ -82,7 +82,7 @@ vconn_stream_open(const char *name, uint32_t allowed_versions,
     struct stream *stream;
     int error;
 
-    error = stream_open_with_default_port(name, OFP_TCP_PORT, &stream, dscp);
+    error = stream_open_with_default_port(name, OFP_OLD_PORT, &stream, dscp);
     if (!error) {
         error = stream_connect(stream);
         if (!error || error == EAGAIN) {
@@ -315,7 +315,7 @@ pvconn_pstream_listen(const char *name, uint32_t allowed_versions,
     struct pstream *pstream;
     int error;
 
-    error = pstream_open_with_default_port(name, OFP_TCP_PORT,
+    error = pstream_open_with_default_port(name, OFP_OLD_PORT,
                                            &pstream, dscp);
     if (error) {
         return error;