WireGuard Archive on lore.kernel.org
 help / color / 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 --]

<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Signed-off-by: Steven Honson &lt;<a href="mailto:steven@honson.id.au">steven@honson.id.au</a>&gt;<br></div><div>---<br></div><div>src/tools/ipc.c | 6 +++---<br></div><div>1 file changed, 3 insertions(+), 3 deletions(-)<br></div><div><br></div><div>diff --git a/src/tools/ipc.c b/src/tools/ipc.c<br></div><div>index d3452be..1739c63 100644<br></div><div>--- a/src/tools/ipc.c<br></div><div>+++ b/src/tools/ipc.c<br></div><div>@@ -186,7 +186,7 @@ static int userspace_get_wireguard_interfaces(struct inflatable_buffer *buffer)<br></div><div>if (strncmp(end, SOCK_SUFFIX, strlen(SOCK_SUFFIX)))<br></div><div>continue;<br></div><div>*end = '\0';<br></div><div>-		if (!userspace_has_wireguard_interface(ent-&gt;d_name))<br></div><div>+		if (!userspace_has_wireguard_iface(ent-&gt;d_name))<br></div><div>continue;<br></div><div>buffer-&gt;next = strdup(ent-&gt;d_name);<br></div><div>buffer-&gt;good = true;<br></div><div>@@ -966,7 +966,7 @@ cleanup:<br></div><div>int ipc_get_device(struct wgdevice **dev, const char *iface)<br></div><div>{<br></div><div>#ifdef __linux__<br></div><div>-	if (userspace_has_wireguard_interface(iface))<br></div><div>+	if (userspace_has_wireguard_iface(iface))<br></div><div>return userspace_get_device(dev, iface);<br></div><div>return kernel_get_device(dev, iface);<br></div><div>#else<br></div><div>@@ -977,7 +977,7 @@ int ipc_get_device(struct wgdevice **dev, const char *iface)<br></div><div>int ipc_set_device(struct wgdevice *dev)<br></div><div>{<br></div><div>#ifdef __linux__<br></div><div>-	if (userspace_has_wireguard_interface(dev-&gt;name))<br></div><div>+	if (userspace_has_wireguard_iface(dev-&gt;name))<br></div><div>return userspace_set_device(dev);<br></div><div>return kernel_set_device(dev);<br></div><div>#else<br></div><div>--<br></div><div>2.21.0<br></div></body></html>

[-- 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	[flat|nested] only message in thread

only message in thread, back to index

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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox