diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2021-02-23 23:42:18 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2021-02-23 23:42:18 +0000 |
commit | 8a2b3ecf05a8a777956e4dbb86d3d42f7e5940f0 (patch) | |
tree | bd08e458d43f3348ef3933658f6e5933a0a336f4 | |
parent | e537d028a8a2956e478c2c82b8fb250bc4d0e3db (diff) |
handle ifconfig veb0 flush with etherbridge_flush, like bpe and nvgre
-rw-r--r-- | sys/net/if_veb.c | 6 |
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); |