summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/vmd.c
diff options
context:
space:
mode:
authorpd <pd@openbsd.org>2017-08-15 15:10:35 +0000
committerpd <pd@openbsd.org>2017-08-15 15:10:35 +0000
commit661d00507bf1e4f1f48f0c87343e3ecfc8fcbc2c (patch)
tree77fdaac39bfc34b7cb1309e62b5ef25680eb287f /usr.sbin/vmd/vmd.c
parents/DEF_STD/DEF_STRONG/ to match namespace.h differences between librthread (diff)
downloadwireguard-openbsd-661d00507bf1e4f1f48f0c87343e3ecfc8fcbc2c.tar.xz
wireguard-openbsd-661d00507bf1e4f1f48f0c87343e3ecfc8fcbc2c.zip
vmd: fix vm id displayed by vmctl when receiving a vm
Also fix two debug messages and an IMSG type.
Diffstat (limited to 'usr.sbin/vmd/vmd.c')
-rw-r--r--usr.sbin/vmd/vmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index 0349834d1c8..4fefc3f0420 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.66 2017/08/14 17:20:59 jasper Exp $ */
+/* $OpenBSD: vmd.c,v 1.67 2017/08/15 15:10:35 pd Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -206,7 +206,7 @@ vmd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
} else {
}
vmr.vmr_id = vid.vid_id;
- log_debug("%s: sending fd to vmctl", __func__);
+ log_debug("%s: sending fd to vmm", __func__);
proc_compose_imsg(ps, PROC_VMM, -1, imsg->hdr.type,
imsg->hdr.peerid, imsg->fd, &vid, sizeof(vid));
break;
@@ -231,7 +231,7 @@ vmd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
__func__);
res = ENOENT;
close(imsg->fd);
- cmd = IMSG_VMDOP_SEND_VM_RESPONSE;
+ cmd = IMSG_VMDOP_START_VM_RESPONSE;
break;
}
if (atomicio(read, imsg->fd, &vmc, sizeof(vmc)) !=
@@ -255,7 +255,7 @@ vmd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
} else {
vm->vm_received = 1;
config_setvm(ps, vm, imsg->hdr.peerid, vmc.vmc_uid);
- log_debug("%s: sending fd to vmctl", __func__);
+ log_debug("%s: sending fd to vmm", __func__);
proc_compose_imsg(ps, PROC_VMM, -1,
IMSG_VMDOP_RECEIVE_VM_END, vm->vm_vmid, imsg->fd,
NULL, 0);