add veb(4) to the list of supported bridges/switches you can configure.
authordlg <dlg@openbsd.org>
Sun, 28 Feb 2021 22:56:09 +0000 (22:56 +0000)
committerdlg <dlg@openbsd.org>
Sun, 28 Feb 2021 22:56:09 +0000 (22:56 +0000)
tested by josh rickmar
ok kn@

usr.sbin/vmd/config.c
usr.sbin/vmd/priv.c

index f9f303a..9ef5dca 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: config.c,v 1.58 2019/05/11 19:55:14 jasper Exp $      */
+/*     $OpenBSD: config.c,v 1.59 2021/02/28 22:56:09 dlg Exp $ */
 
 /*
  * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -40,7 +40,7 @@
 #include "vmd.h"
 
 /* Supported bridge types */
-const char *vmd_descsw[] = { "switch", "bridge", NULL };
+const char *vmd_descsw[] = { "switch", "bridge", "veb", NULL };
 
 static int      config_init_localprefix(struct vmd_config *);
 
index 6ced202..7335f0c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: priv.c,v 1.15 2019/06/28 13:32:51 deraadt Exp $       */
+/*     $OpenBSD: priv.c,v 1.16 2021/02/28 22:56:09 dlg Exp $   */
 
 /*
  * Copyright (c) 2016 Reyk Floeter <reyk@openbsd.org>
@@ -81,7 +81,8 @@ priv_run(struct privsep *ps, struct privsep_proc *p, void *arg)
 int
 priv_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
 {
-       const char              *desct[] = { "tap", "switch", "bridge", NULL };
+       const char              *desct[] = { "tap", "switch", "bridge",
+                                    "veb", NULL };
        struct privsep          *ps = p->p_ps;
        struct vmop_ifreq        vfr;
        struct vmd              *env = ps->ps_env;