wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: use new name for userspace_has_wireguard_iface
@ 2019-08-31  8:18 Steven Honson
  0 siblings, 0 replies; only message in thread
From: Steven Honson @ 2019-08-31  8:18 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1207 bytes --]

Signed-off-by: Steven Honson <steven@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

[-- Attachment #1.2: Type: text/html, Size: 1946 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-31  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-31  8:18 [PATCH] tools: use new name for userspace_has_wireguard_iface Steven Honson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).