summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2019-05-11 19:58:02 +0000
committerjasper <jasper@openbsd.org>2019-05-11 19:58:02 +0000
commit68b3b297d90550c8e27b786f0e7ec87df0fe21c9 (patch)
tree3004c6af51114133f2b8d2dfc58800b263d6b357
parenttrack the state of the vm (running, paused, etc) using a single bitfield instead of (diff)
downloadwireguard-openbsd-68b3b297d90550c8e27b786f0e7ec87df0fe21c9.tar.xz
wireguard-openbsd-68b3b297d90550c8e27b786f0e7ec87df0fe21c9.zip
add missing comment about VM_STATE_SHUTDOWN; as discussed with ccardenas@
-rw-r--r--usr.sbin/vmd/vmd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index d097791159c..b9a2ac28d0f 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.92 2019/05/11 19:55:14 jasper Exp $ */
+/* $OpenBSD: vmd.h,v 1.93 2019/05/11 19:58:02 jasper Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -274,6 +274,7 @@ struct vmd_vm {
#define VM_STATE_RUNNING 0x01
/* When set, VM is not started by default (PROC_PARENT only) */
#define VM_STATE_DISABLED 0x02
+/* When set, VM is marked to be shut down */
#define VM_STATE_SHUTDOWN 0x04
#define VM_STATE_RECEIVED 0x08
#define VM_STATE_PAUSED 0x10