handle ifconfig veb0 flush with etherbridge_flush, like bpe and nvgre
authordlg <dlg@openbsd.org>
Tue, 23 Feb 2021 23:42:17 +0000 (23:42 +0000)
committerdlg <dlg@openbsd.org>
Tue, 23 Feb 2021 23:42:17 +0000 (23:42 +0000)
sys/net/if_veb.c

index 4df59ee..a324556 100644 (file)
@@ -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);