vconn-tcp: Report correct remote IP and remote port.
authorBen Pfaff <blp@nicira.com>
Wed, 2 Sep 2009 18:16:40 +0000 (11:16 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 2 Sep 2009 18:16:40 +0000 (11:16 -0700)
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

index eece228..998a200 100644 (file)
@@ -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 {