summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2003-07-06 03:24:25 +0000
committerBill Paul <wpaul@FreeBSD.org>2003-07-06 03:24:25 +0000
commit79a58745415c25708194d7d8be0dbb03cc02605f (patch)
treebd343ec552f09ad8a4a812566a0744b3e37eff03
parentb6eb8f8a31625011b7cd0a4c254edbbb9929efd7 (diff)
Notes
-rw-r--r--sys/net/if_vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 5fe0a0ab14f2..99b1dcfb8f1a 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -319,7 +319,7 @@ vlan_start(struct ifnet *ifp)
* knows how to find the VLAN tag to use, so we attach a
* packet tag that holds it.
*/
- if (ifp->if_capabilities & IFCAP_VLAN_HWTAGGING) {
+ if (p->if_capabilities & IFCAP_VLAN_HWTAGGING) {
struct m_tag *mtag = m_tag_alloc(MTAG_VLAN,
MTAG_VLAN_TAG,
sizeof (u_int),
@@ -409,7 +409,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m)
("vlan_input: bad encapsulated protocols (%u)",
ntohs(evl->evl_encap_proto)));
- tag = EVL_VLANOFTAG(ntohs(evl->evl_tag));
+ tag = ntohs(evl->evl_tag);
/*
* Restore the original ethertype. We'll remove