diff options
Diffstat (limited to 'sysdep')
-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; |