s->stream = stream;
s->txbuf = NULL;
s->rxbuf = NULL;
+ s->vconn.remote_ip = stream_get_remote_ip(stream);
+ s->vconn.remote_port = stream_get_remote_port(stream);
+ s->vconn.local_ip = stream_get_local_ip(stream);
+ s->vconn.local_port = stream_get_local_port(stream);
return &s->vconn;
}
*
* Returns 0 if successful, otherwise a positive errno value. */
static int
-vconn_stream_open(const char *name_, char *suffix UNUSED,
+vconn_stream_open(const char *name_, char *suffix OVS_UNUSED,
struct vconn **vconnp)
{
struct stream *stream;
* Returns 0 if successful, otherwise a positive errno value. (The current
* implementation never fails.) */
static int
-pvconn_pstream_listen(const char *name_, char *suffix UNUSED,
+pvconn_pstream_listen(const char *name_, char *suffix OVS_UNUSED,
struct pvconn **pvconnp)
{
struct pvconn_pstream *ps;
int error;
if (!strncmp(name_, "ptcp:", 5) && count_fields(name_) < 2) {
- name = xasprintf("%s:%d", name_, OFP_TCP_PORT);
+ name = xasprintf("%s%d", name_, OFP_TCP_PORT);
} else if (!strncmp(name_, "pssl:", 5) && count_fields(name_) < 2) {
- name = xasprintf("%s:%d", name_, OFP_SSL_PORT);
+ name = xasprintf("%s%d", name_, OFP_SSL_PORT);
} else {
name = xstrdup(name_);
}