[PATCH] tools: use new name for userspace_has_wireguard_iface

Steven Honson steven at honson.id.au
Sat Aug 31 10:18:18 CEST 2019


Signed-off-by: Steven Honson <steven at honson.id.au>
---
src/tools/ipc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tools/ipc.c b/src/tools/ipc.c
index d3452be..1739c63 100644
--- a/src/tools/ipc.c
+++ b/src/tools/ipc.c
@@ -186,7 +186,7 @@ static int userspace_get_wireguard_interfaces(struct inflatable_buffer *buffer)
if (strncmp(end, SOCK_SUFFIX, strlen(SOCK_SUFFIX)))
continue;
*end = '\0';
- if (!userspace_has_wireguard_interface(ent->d_name))
+ if (!userspace_has_wireguard_iface(ent->d_name))
continue;
buffer->next = strdup(ent->d_name);
buffer->good = true;
@@ -966,7 +966,7 @@ cleanup:
int ipc_get_device(struct wgdevice **dev, const char *iface)
{
#ifdef __linux__
- if (userspace_has_wireguard_interface(iface))
+ if (userspace_has_wireguard_iface(iface))
return userspace_get_device(dev, iface);
return kernel_get_device(dev, iface);
#else
@@ -977,7 +977,7 @@ int ipc_get_device(struct wgdevice **dev, const char *iface)
int ipc_set_device(struct wgdevice *dev)
{
#ifdef __linux__
- if (userspace_has_wireguard_interface(dev->name))
+ if (userspace_has_wireguard_iface(dev->name))
return userspace_set_device(dev);
return kernel_set_device(dev);
#else
--
2.21.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20190831/c08836b4/attachment.html>


More information about the WireGuard mailing list