From: dlg Date: Tue, 23 Feb 2021 23:42:17 +0000 (+0000) Subject: handle ifconfig veb0 flush with etherbridge_flush, like bpe and nvgre X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f08dc221a6d785d8efb1fc6405b4604ed763da5f;p=openbsd handle ifconfig veb0 flush with etherbridge_flush, like bpe and nvgre --- 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 @@ -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);