summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-01-01 03:59:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-01-01 03:59:53 +0000
commit282df9ed409b3ddffe00dc0d5eb3e185362fc523 (patch)
tree3383451697090d4213ab81490b267942f91fa419 /sys/dev/ic
parentecfdfa86b11e010c5a756298db5cdd1137354227 (diff)
allow reception of VLAN sized frames.
tested and ok niklas@ From NetBSD
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/am7990.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c
index 4e948402d75..5c564d8003b 100644
--- a/sys/dev/ic/am7990.c
+++ b/sys/dev/ic/am7990.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: am7990.c,v 1.36 2004/09/28 04:37:32 brad Exp $ */
+/* $OpenBSD: am7990.c,v 1.37 2005/01/01 03:59:52 brad Exp $ */
/* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */
/*-
@@ -146,6 +146,8 @@ am7990_config(sc)
ifp->if_baudrate = IF_Mbps(10);
IFQ_SET_READY(&ifp->if_snd);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
/* Attach the interface. */
if_attach(ifp);
ether_ifattach(ifp);
@@ -448,7 +450,7 @@ am7990_read(sc, boff, len)
#endif
if (len <= sizeof(struct ether_header) ||
- len > ETHERMTU + sizeof(struct ether_header)) {
+ len > ETHERMTU + ETHER_VLAN_ENCAP_LEN + sizeof(struct ether_header)) {
#ifdef LEDEBUG
printf("%s: invalid packet size %d; dropping\n",
sc->sc_dev.dv_xname, len);