summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/config.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2017-05-04 08:26:07 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2017-05-04 08:26:07 +0000
commitd9710761626ca18772a1225525894d5d09353d11 (patch)
treecfb412e09d1dff2ef04dff50054c80b95717ec98 /usr.sbin/vmd/config.c
parent487e53113bfbb64ce3a522451bb7310096ff3b78 (diff)
Add support for rdomains.
This allows to configure VM interfaces and switches in individual rdomains. OK mlarkin@
Diffstat (limited to 'usr.sbin/vmd/config.c')
-rw-r--r--usr.sbin/vmd/config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/vmd/config.c b/usr.sbin/vmd/config.c
index f100c7b8aa5..7d738a3cc64 100644
--- a/usr.sbin/vmd/config.c
+++ b/usr.sbin/vmd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.30 2017/04/21 07:03:26 reyk Exp $ */
+/* $OpenBSD: config.c,v 1.31 2017/05/04 08:26:06 reyk Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -282,6 +282,9 @@ config_setvm(struct privsep *ps, struct vmd_vm *vm, uint32_t peerid, uid_t uid)
}
}
+ /* non-default rdomain (requires VMIFF_RDOMAIN below) */
+ vif->vif_rdomain = vmc->vmc_ifrdomain[i];
+
/* Set the interface status */
vif->vif_flags =
vmc->vmc_ifflags[i] & (VMIFF_UP|VMIFF_OPTMASK);