summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a12945b)
We hide tunproxy.c from the build, since thread-safety checks do not
make sense there.
static int
netdev_tunnel_connect(struct netdev_tunnel *dev)
{
static int
netdev_tunnel_connect(struct netdev_tunnel *dev)
{
if (dev->sockfd < 0)
return EBADF;
if (!dev->valid_remote_ip || !dev->valid_remote_port)
if (dev->sockfd < 0)
return EBADF;
if (!dev->valid_remote_ip || !dev->valid_remote_port)
dev->connected = true;
netdev_tunnel_update_seq(dev);
VLOG_DBG("%s: connected to (%s, %d)", netdev_get_name(&dev->up),
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));