X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-tunnel.c;h=f8bc74bb18fcc15d20dbd85f2a0a8cba8cbc7ed5;hb=0f795b759cfc75d9effbe245c8714dbea6d20bb1;hp=36c454b370036efda9bded587a2afb3248981ece;hpb=a12945b3b8cd4d483e5e8f2a1adb6576badf1d4d;p=sliver-openvswitch.git diff --git a/lib/netdev-tunnel.c b/lib/netdev-tunnel.c index 36c454b37..f8bc74bb1 100644 --- a/lib/netdev-tunnel.c +++ b/lib/netdev-tunnel.c @@ -163,6 +163,7 @@ netdev_tunnel_get_config(const struct netdev *dev_, struct smap *args) static int netdev_tunnel_connect(struct netdev_tunnel *dev) { + char buf[1024]; if (dev->sockfd < 0) return EBADF; if (!dev->valid_remote_ip || !dev->valid_remote_port) @@ -174,7 +175,7 @@ netdev_tunnel_connect(struct netdev_tunnel *dev) dev->connected = true; netdev_tunnel_update_seq(dev); VLOG_DBG("%s: connected to (%s, %d)", netdev_get_name(&dev->up), - inet_ntoa(dev->remote_addr.sin_addr), ntohs(dev->remote_addr.sin_port)); + inet_ntop(AF_INET, &dev->remote_addr.sin_addr, buf, 1024), ntohs(dev->remote_addr.sin_port)); return 0; }