summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2001-08-03 23:26:05 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2001-08-03 23:26:05 +0000
commit0300545a34b0b9c390acfe754f716da8fba4dfdb (patch)
tree17ed30d3a34404ff039876cb3a94036ba6911e19 /sys/dev/ic/rtl81x9.c
parent91535da0fdbc806a4edb250c5113499007e5c4ab (diff)
Set IFCAP_VLAN_MTU, the Realtek chip does not discard/truncate large frames.
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index fafe43dc950..30723302dee 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.6 2001/07/08 23:38:06 fgsch Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.7 2001/08/03 23:26:04 chris Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -84,6 +84,7 @@
*/
#include "bpfilter.h"
+#include "vlan.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -1279,6 +1280,10 @@ rl_attach(sc)
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+#if NVLAN > 0
+ ifp->if_capabilities |= IFCAP_VLAN_MTU;
+#endif
+
/*
* Initialize our media structures and probe the MII.
*/