summaryrefslogtreecommitdiff
path: root/sysdep/unix/wg_user.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-14 18:52:28 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-14 18:52:28 +0200
commit46389cadb1f2f28da375fdc4d5e505d33e8215df (patch)
treefbc9ba7af8acdabe92c6853fb1c8b27e89f51705 /sysdep/unix/wg_user.c
parentfe451b37c89207b44442dcf01ec17b787af7d4d0 (diff)
WIP fix user data
Diffstat (limited to 'sysdep/unix/wg_user.c')
-rw-r--r--sysdep/unix/wg_user.c6
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;