summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-11 23:55:39 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-11 23:55:39 +0200
commit286a800d15fefc57e1aa810e3e90224bd00e6256 (patch)
treeb440cb4c46662158e72c7e642e3d3c1fa7b6d16b
parent93d2d0912e95866c39283842f40ca08f4a0bbba1 (diff)
WIP unix socket debug
-rw-r--r--sysdep/unix/wg_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c
index 5d4d59a0..01a0029a 100644
--- a/sysdep/unix/wg_user.c
+++ b/sysdep/unix/wg_user.c
@@ -42,6 +42,7 @@ bool wg_has_userspace(const char *ifname)
else
{
DBG(L_TRACE "WG: no socket %s", tmp);
+ log(L_TRACE "WG: no socket %s", tmp);
return false;
}
}
@@ -231,6 +232,7 @@ wg_user_set_device(struct pool *pool,
sock->tx_hook = user_tx_hook;
sock->err_hook = user_err_hook;
int res = sk_connect_unix(sock, path, pathlen);
+ log(L_TRACE "WG: socket %d %d %d %s", res, sock->fd, path[0], path + 1, pathlen);
DBG(L_TRACE "WG: socket %d %d %s", res, sock->fd, path);
if (res < 0)
{