wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: "Steven Honson" <steven@honson.id.au>
To: wireguard@lists.zx2c4.com
Subject: [PATCH] tools: use new name for userspace_has_wireguard_iface
Date: Sat, 31 Aug 2019 18:18:18 +1000	[thread overview]
Message-ID: <7f2230df-ffe2-4072-9970-4fac371deee0@www.fastmail.com> (raw)


[-- 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

                 reply	other threads:[~2019-08-31  8:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f2230df-ffe2-4072-9970-4fac371deee0@www.fastmail.com \
    --to=steven@honson.id.au \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).