diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-11 23:55:39 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-11 23:55:39 +0200 |
commit | 286a800d15fefc57e1aa810e3e90224bd00e6256 (patch) | |
tree | b440cb4c46662158e72c7e642e3d3c1fa7b6d16b /sysdep | |
parent | 93d2d0912e95866c39283842f40ca08f4a0bbba1 (diff) |
WIP unix socket debug
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/wg_user.c | 2 |
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) { |