aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2005-09-16 11:58:58 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2005-09-16 11:58:58 +0000
commit14e982563498165f88306cc96fe3bd9cd6908069 (patch)
tree746e4de58f4a3fb7ec85851dd10f2ba71031a326 /sys
parentf4ec4126bbdbfd10010e303773b9c0433893bbe0 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 5c7166ea7ed71..3f1145b6943c3 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -564,7 +564,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m)
if (m->m_flags & M_VLANTAG) {
/*
- * Packet is tagged, m contains a normal
+ * Packet is tagged, but m contains a normal
* Ethernet frame; the tag is stored out-of-band.
*/
mtag = m_tag_locate(m, MTAG_VLAN, MTAG_VLAN_TAG, NULL);
@@ -574,6 +574,9 @@ vlan_input(struct ifnet *ifp, struct mbuf *m)
m_tag_delete(m, mtag);
m->m_flags &= ~M_VLANTAG;
} else {
+ /*
+ * Packet is tagged in-band as specified by 802.1q.
+ */
mtag = NULL;
switch (ifp->if_type) {
case IFT_ETHER: