From: Ben Pfaff Date: Wed, 2 Sep 2009 18:16:40 +0000 (-0700) Subject: vconn-tcp: Report correct remote IP and remote port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a519b5c987a6213b65ff4c2fbc817ecd287fbe;p=openvswitch 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. --- 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 {