summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2021-02-23 23:42:17 +0000
committerdlg <dlg@openbsd.org>2021-02-23 23:42:17 +0000
commitf08dc221a6d785d8efb1fc6405b4604ed763da5f (patch)
treed549e138afde99f4b99b45f9a7087e32f2e0943a
parentlots more s/key types/signature algorithms/ mostly in (diff)
downloadwireguard-openbsd-f08dc221a6d785d8efb1fc6405b4604ed763da5f.tar.xz
wireguard-openbsd-f08dc221a6d785d8efb1fc6405b4604ed763da5f.zip
handle ifconfig veb0 flush with etherbridge_flush, like bpe and nvgre
-rw-r--r--sys/net/if_veb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_veb.c b/sys/net/if_veb.c
index 4df59eeca5a..a32455628a2 100644
--- a/sys/net/if_veb.c
+++ b/sys/net/if_veb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_veb.c,v 1.6 2021/02/23 11:40:28 dlg Exp $ */
+/* $OpenBSD: if_veb.c,v 1.7 2021/02/23 23:42:17 dlg Exp $ */
/*
* Copyright (c) 2021 David Gwynne <dlg@openbsd.org>
@@ -1144,6 +1144,10 @@ veb_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCBRDGIFS:
error = veb_port_list(sc, (struct ifbifconf *)data);
break;
+ case SIOCBRDGFLUSH:
+ etherbridge_flush(&sc->sc_eb,
+ ((struct ifbreq *)data)->ifbr_ifsflags);
+ break;
case SIOCBRDGSIFPROT:
error = veb_port_set_protected(sc, (struct ifbreq *)data);