diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-08-29 15:01:25 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-09-13 18:06:16 +0200 |
commit | 729bcadb9fe79f5a7a1cf98aa04f411b1398c324 (patch) | |
tree | 2c6cd07b47b0f939743378cd71d959bdd2f5c97d | |
parent | fdce71f860e755cf58863234831fe8d37afa5251 (diff) |
FIX WIP send in tx hook
-rw-r--r-- | sysdep/unix/wg_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c index 447e4ecd..62c53412 100644 --- a/sysdep/unix/wg_user.c +++ b/sysdep/unix/wg_user.c @@ -66,7 +66,7 @@ void user_tx_hook(struct birdsock *bs) { log(L_TRACE "WG: TX %p %d", bs, bs->tpos - bs->ttx); - uint size = (uint)bs->data; + uint size = (uintptr_t)bs->data; if (size > 0) { @@ -277,7 +277,7 @@ wg_user_set_device(struct pool *pool, return -1; } - sock->data = (void*)size; + sock->data = (void*)(uintptr_t)size; int res = sk_connect_unix(sock, path, pathlen); log(L_TRACE "WG: socket %s %d %d %d %s %d %s %d", res<0?strerror(errno):NULL, res, res<0?errno:0, sock->fd, ifname, path[0], path + 1, pathlen); |