From: Tetsuo NAKAGAWA Date: Mon, 15 Mar 2010 17:16:02 +0000 (-0700) Subject: vconn-stream: Copy stream's IP and port info into vconn at creation time. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6461611285ed11caf02cd22bb749020bf64a6f65;p=openvswitch vconn-stream: Copy stream's IP and port info into vconn at creation time. This fixes in-band control, which depends on knowing the local and remote IP and port. --- diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 7a9ef389..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; }