diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-14 18:52:28 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-14 18:52:28 +0200 |
commit | 46389cadb1f2f28da375fdc4d5e505d33e8215df (patch) | |
tree | fbc9ba7af8acdabe92c6853fb1c8b27e89f51705 | |
parent | fe451b37c89207b44442dcf01ec17b787af7d4d0 (diff) |
WIP fix user data
-rw-r--r-- | sysdep/unix/wg_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c index 22933b5a..04ebcdf0 100644 --- a/sysdep/unix/wg_user.c +++ b/sysdep/unix/wg_user.c @@ -64,7 +64,7 @@ void user_tx_hook(struct birdsock *bs) { log(L_TRACE "WG: TX %p %d", bs, bs->tpos - bs->ttx); - uint size = (uint)bs->user; + uint size = (uint)bs->data; if (size > 0) { @@ -79,7 +79,7 @@ void user_tx_hook(struct birdsock *bs) //shutdown(sock->fd, SHUT_WR); } - bs->user = NULL; + bs->data = NULL; } } @@ -281,7 +281,7 @@ wg_user_set_device(struct pool *pool, rfree(sock); return -1; } - sock->user = (void*)size; + sock->data = (void*)size; /* abort(); */ return -1; |