X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn-stream.c;h=aa2e61947222fcee92afd2541403aca5f8053348;hb=76f105d9be03588c2d5ec0b94ff769a1d269f2e4;hp=99eb21a89d9598f36d63e4345993e8789d5ff7f6;hpb=02dd3123a0e312f1d33403e744af52dd6096f12d;p=openvswitch diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 99eb21a8..aa2e6194 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -64,6 +64,10 @@ vconn_stream_new(struct stream *stream, int connect_status) 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; } @@ -307,9 +311,9 @@ pvconn_pstream_listen(const char *name_, char *suffix OVS_UNUSED, 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_); }