From c3a519b5c987a6213b65ff4c2fbc817ecd287fbe Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 2 Sep 2009 11:16:40 -0700 Subject: [PATCH] vconn-tcp: Report correct remote IP and remote port. TCP vconns were reporting indeterminate remote IP and remote port, which prevented in-band control from working for TCP vconns. The code that this fixes is implemented differently on the citrix branch and thus the bug was not present there. --- lib/vconn-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c index eece228e..998a2001 100644 --- a/lib/vconn-tcp.c +++ b/lib/vconn-tcp.c @@ -75,7 +75,7 @@ tcp_open(const char *name, char *suffix, struct vconn **vconnp) struct sockaddr_in sin; int fd, error; - error = tcp_open_active(suffix, OFP_TCP_PORT, NULL, &fd); + error = tcp_open_active(suffix, OFP_TCP_PORT, &sin, &fd); if (fd >= 0) { return new_tcp_vconn(name, fd, error, &sin, vconnp); } else { -- 2.30.2