aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/showconf.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-20 21:24:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-21 11:26:52 +0200
commitb318e81cd0849ef7725f6776a680eccc7fcfdc06 (patch)
tree09d714da35a9a67160a04527ca73e7057b3c6817 /src/showconf.c
parentwg: support horrible freebsd/osx/unix semantics (diff)
downloadwireguard-tools-b318e81cd0849ef7725f6776a680eccc7fcfdc06.tar.xz
wireguard-tools-b318e81cd0849ef7725f6776a680eccc7fcfdc06.zip
wg: rename kernel to ipc
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/showconf.c')
-rw-r--r--src/showconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/showconf.c b/src/showconf.c
index 68084c0..75d78e0 100644
--- a/src/showconf.c
+++ b/src/showconf.c
@@ -12,7 +12,7 @@
#include "subcommands.h"
#include "base64.h"
-#include "kernel.h"
+#include "ipc.h"
#include "../uapi.h"
int showconf_main(int argc, char *argv[])
@@ -31,13 +31,13 @@ int showconf_main(int argc, char *argv[])
return 1;
}
- if (!has_wireguard_interface(argv[1])) {
+ if (!ipc_has_device(argv[1])) {
fprintf(stderr, "`%s` is not a valid WireGuard interface\n", argv[1]);
fprintf(stderr, "Usage: %s %s <interface>\n", PROG_NAME, argv[0]);
return 1;
}
- if (get_device(&device, argv[1])) {
+ if (ipc_get_device(&device, argv[1])) {
perror("Unable to get device");
goto cleanup;
}