summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_pppoe.c3
-rw-r--r--sys/net/if_switch.c3
-rw-r--r--sys/net/if_trunk.c3
-rw-r--r--sys/net/if_vether.c3
-rw-r--r--sys/net/if_vxlan.c3
5 files changed, 10 insertions, 5 deletions
diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c
index 7a2176b445c..28be1799ea1 100644
--- a/sys/net/if_pppoe.c
+++ b/sys/net/if_pppoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppoe.c,v 1.69 2020/07/10 13:26:42 patrick Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.70 2020/07/28 09:52:32 mvs Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
@@ -210,6 +210,7 @@ pppoe_clone_create(struct if_clone *ifc, int unit)
sc->sc_sppp.pp_if.if_ioctl = pppoe_ioctl;
sc->sc_sppp.pp_if.if_start = pppoe_start;
sc->sc_sppp.pp_if.if_rtrequest = p2p_rtrequest;
+ sc->sc_sppp.pp_if.if_xflags = IFXF_CLONED;
sc->sc_sppp.pp_tls = pppoe_tls;
sc->sc_sppp.pp_tlf = pppoe_tlf;
ifq_set_maxlen(&sc->sc_sppp.pp_if.if_snd, IFQ_MAXLEN);
diff --git a/sys/net/if_switch.c b/sys/net/if_switch.c
index 71279908cf5..87a1e72cfc2 100644
--- a/sys/net/if_switch.c
+++ b/sys/net/if_switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_switch.c,v 1.35 2020/07/28 07:37:05 kn Exp $ */
+/* $OpenBSD: if_switch.c,v 1.36 2020/07/28 09:52:32 mvs Exp $ */
/*
* Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
@@ -165,6 +165,7 @@ switch_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = NULL;
ifp->if_type = IFT_BRIDGE;
ifp->if_hdrlen = ETHER_HDR_LEN;
+ ifp->if_xflags = IFXF_CLONED;
TAILQ_INIT(&sc->sc_swpo_list);
sc->sc_unit = unit;
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index 22dce44cfaf..4a1dfe1f797 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.148 2020/07/22 02:16:02 dlg Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.149 2020/07/28 09:52:32 mvs Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -184,6 +184,7 @@ trunk_clone_create(struct if_clone *ifc, int unit)
ifp->if_ioctl = trunk_ioctl;
ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
ifp->if_capabilities = trunk_capabilities(tr);
+ ifp->if_xflags = IFXF_CLONED;
snprintf(ifp->if_xname, sizeof(ifp->if_xname), "%s%d",
ifc->ifc_name, unit);
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);
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index f590f858c88..18cef0682df 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.79 2020/07/10 13:26:42 patrick Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.80 2020/07/28 09:52:32 mvs Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -155,6 +155,7 @@ vxlan_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, vxlan_media_change,
vxlan_media_status);