summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-25 01:34:28 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-25 01:34:28 +0000
commit29d628ade2027c2b9a48b4eec436abf20133a820 (patch)
treebb10632dc42d2953602bab73fc64d43b2897a917 /sys/net/if_vlan.c
parent365da25dd8f57f3a3721bfaf73feb24562c00f50 (diff)
Use ETHERTYPE_VLAN.
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index eb302cc7375..92faeb7dddd 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.53 2005/04/24 10:16:10 brad Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.54 2005/04/25 01:34:26 brad Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
@@ -220,7 +220,7 @@ vlan_start(struct ifnet *ifp)
m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&evh);
evh.evl_proto = evh.evl_encap_proto;
- evh.evl_encap_proto = htons(ETHERTYPE_8021Q);
+ evh.evl_encap_proto = htons(ETHERTYPE_VLAN);
evh.evl_tag = htons(ifv->ifv_tag);
m_adj(m, ETHER_HDR_LEN);
@@ -285,7 +285,7 @@ vlan_input_tag(struct mbuf *m, u_int16_t t)
m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&vh);
vh.evl_proto = vh.evl_encap_proto;
vh.evl_tag = htons(t);
- vh.evl_encap_proto = htons(ETHERTYPE_8021Q);
+ vh.evl_encap_proto = htons(ETHERTYPE_VLAN);
m_adj(m, ETHER_HDR_LEN);
m = m_prepend(m, sizeof(struct ether_vlan_header), M_DONTWAIT);
if (m == NULL)