summaryrefslogtreecommitdiff
path: root/sys/net/if_vether.c
diff options
context:
space:
mode:
authormvs <mvs@cvs.openbsd.org>2020-07-28 09:52:33 +0000
committermvs <mvs@cvs.openbsd.org>2020-07-28 09:52:33 +0000
commitce72f1171c3b86fa22ab2ca0b6b14983242e0804 (patch)
treefdc842333d4c0fde474eb84d77e60c5e92db8c03 /sys/net/if_vether.c
parent21f8bf273cb7514221245f5c6921a431ed96235f (diff)
Add missing `IFXF_CLONED' flag to clone interfaces.
ok mpi@
Diffstat (limited to 'sys/net/if_vether.c')
-rw-r--r--sys/net/if_vether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_vether.c b/sys/net/if_vether.c
index 6c6ab35c625..bff5058c892 100644
--- a/sys/net/if_vether.c
+++ b/sys/net/if_vether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vether.c,v 1.32 2020/07/10 13:26:42 patrick Exp $ */
+/* $OpenBSD: if_vether.c,v 1.33 2020/07/28 09:52:32 mvs Exp $ */
/*
* Copyright (c) 2009 Theo de Raadt
@@ -88,6 +88,7 @@ vether_clone_create(struct if_clone *ifc, int unit)
ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
+ ifp->if_xflags = IFXF_CLONED;
ifmedia_init(&sc->sc_media, 0, vether_media_change,
vether_media_status);