diff options
author | yar <yar@FreeBSD.org> | 2005-09-16 11:58:58 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-09-16 11:58:58 +0000 |
commit | 8f1b02531612d9b8bc8072a0cf4dbab7e3c63a6c (patch) | |
tree | 746e4de58f4a3fb7ec85851dd10f2ba71031a326 | |
parent | a930847e8fda73b5d669020b34d381b323554708 (diff) | |
download | FreeBSD-src-8f1b02531612d9b8bc8072a0cf4dbab7e3c63a6c.zip FreeBSD-src-8f1b02531612d9b8bc8072a0cf4dbab7e3c63a6c.tar.gz |
It's nice to have relevant comments both in if {} and else {},
not in just one of them.
-rw-r--r-- | sys/net/if_vlan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 5c7166e..3f1145b 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: |