summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-18 02:10:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-18 02:10:46 +0000
commitde8a4d2ae31202ea3ddf855adfaca582a71220a8 (patch)
tree3a15355e5d40111b34c46c523aacd82cbe8db3aa
parent9ee962b67f88afc2f2c4dd0b94c62ffb2d7a5f32 (diff)
set IFCAP_VLAN_MTU; from brad
-rw-r--r--sys/net/if_vether.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vether.c b/sys/net/if_vether.c
index 8eec78edd5e..7e5d3b14819 100644
--- a/sys/net/if_vether.c
+++ b/sys/net/if_vether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vether.c,v 1.3 2009/11/12 06:37:39 deraadt Exp $ */
+/* $OpenBSD: if_vether.c,v 1.4 2009/11/18 02:10:45 deraadt Exp $ */
/*
* Copyright (c) 2009 Theo de Raadt
@@ -118,12 +118,15 @@ vether_clone_create(struct if_clone *ifc, int unit)
ifp = &sc->sc_ac.ac_if;
snprintf(ifp->if_xname, sizeof ifp->if_xname, "vether%d", unit);
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+
ifp->if_softc = sc;
ifp->if_ioctl = vetherioctl;
ifp->if_start = vetherstart;
IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
IFQ_SET_READY(&ifp->if_snd);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
ifmedia_init(&sc->sc_media, 0, vether_media_change,
vether_media_status);
ifmedia_add(&sc->sc_media, IFM_ETHER | IFM_AUTO, 0, NULL);