From 0f795b759cfc75d9effbe245c8714dbea6d20bb1 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Sat, 6 Jul 2013 19:14:14 +0200 Subject: [PATCH] comply with thread-safety checks We hide tunproxy.c from the build, since thread-safety checks do not make sense there. --- lib/netdev-tunnel.c | 3 ++- planetlab/exp-tool/{tunproxy.c => tunproxy.txt} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename planetlab/exp-tool/{tunproxy.c => tunproxy.txt} (100%) 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; } diff --git a/planetlab/exp-tool/tunproxy.c b/planetlab/exp-tool/tunproxy.txt similarity index 100% rename from planetlab/exp-tool/tunproxy.c rename to planetlab/exp-tool/tunproxy.txt -- 2.43.0