From 46389cadb1f2f28da375fdc4d5e505d33e8215df Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 14 May 2020 18:52:28 +0200 Subject: WIP fix user data --- sysdep/unix/wg_user.c | 6 +++--- 1 file 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; -- cgit v1.2.3