From 6461611285ed11caf02cd22bb749020bf64a6f65 Mon Sep 17 00:00:00 2001 From: Tetsuo NAKAGAWA Date: Mon, 15 Mar 2010 10:16:02 -0700 Subject: [PATCH] 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. --- lib/vconn-stream.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.30.2