From 0300545a34b0b9c390acfe754f716da8fba4dfdb Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Fri, 3 Aug 2001 23:26:05 +0000 Subject: Set IFCAP_VLAN_MTU, the Realtek chip does not discard/truncate large frames. --- sys/dev/ic/rtl81x9.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic/rtl81x9.c') 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 #include @@ -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. */ -- cgit v1.2.3