summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ti.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-07-03 02:43:17 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-07-03 02:43:17 +0000
commit2079bb7a9447be1943c3b140ad89a7068f206c43 (patch)
treef1129f947b1a5d6fa3d8e846a5e0f5aeaf4d3c7d /sys/dev/pci/if_ti.c
parentb3e06aa6d893fe2a42f31b6342fc40cf1fa4a6ef (diff)
From FreeBSD:
mask off high order part of vlan tag (the non-tag parts)
Diffstat (limited to 'sys/dev/pci/if_ti.c')
-rw-r--r--sys/dev/pci/if_ti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c
index 79b4ff8aaa8..9290b9c1820 100644
--- a/sys/dev/pci/if_ti.c
+++ b/sys/dev/pci/if_ti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ti.c,v 1.25 2001/06/27 06:34:49 kjc Exp $ */
+/* $OpenBSD: if_ti.c,v 1.26 2001/07/03 02:43:16 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1729,7 +1729,7 @@ void ti_rxeof(sc)
#if NVLAN > 0
if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
have_tag = 1;
- vlan_tag = cur_rx->ti_vlan_tag;
+ vlan_tag = cur_rx->ti_vlan_tag & 0xfff;
}
#endif
@@ -1979,7 +1979,7 @@ int ti_encap(sc, m_head, txidx)
#if NVLAN > 0
if (ifv != NULL) {
f->ti_flags |= TI_BDFLAG_VLAN_TAG;
- f->ti_vlan_tag = ifv->ifv_tag;
+ f->ti_vlan_tag = ifv->ifv_tag & 0xfff;
} else {
f->ti_vlan_tag = 0;
}