diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-11-12 12:58:19 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-11-12 12:58:19 +0000 |
| commit | 26f9b263ae90f981744144845a16345f7bee6bfc (patch) | |
| tree | bfef45297b7443f13cb583fdde6d087cbee601a6 /sys/net | |
| parent | f004a9739ca0b2fc0f01db8de17f2c048fea5d6f (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if_vlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 75f25ed8d38a5..315412ffbb70f 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -346,7 +346,7 @@ vlan_start(struct ifnet *ifp) M_PREPEND(m, ifv->ifv_encaplen, M_DONTWAIT); if (m == NULL) { if_printf(ifp, "unable to prepend VLAN header"); - ifp->if_ierrors++; + ifp->if_oerrors++; continue; } /* M_PREPEND takes care of m_len, m_pkthdr.len for us */ @@ -356,7 +356,7 @@ vlan_start(struct ifnet *ifp) if (m == NULL) { if_printf(ifp, "cannot pullup VLAN header"); - ifp->if_ierrors++; + ifp->if_oerrors++; continue; } } @@ -405,7 +405,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m) * Packet is tagged, m contains a normal * Ethernet frame; the tag is stored out-of-band. */ - tag = EVL_VLANOFTAG(*(u_int*)(mtag+1)); + tag = EVL_VLANOFTAG(VLAN_TAG_VALUE(mtag)); m_tag_delete(m, mtag); } else { switch (ifp->if_type) { |
