summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-03 05:04:57 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-03 05:04:57 +0000
commit587970fdc3a5e96f3ae648daf6d10fddfd60310d (patch)
tree1a7da9ce88a0fd72ae2f765e952b5dcf1e2b93f7 /sys/net/if_vlan.c
parent2d1c8006af34da5cb4a92951bf42e868823f6e04 (diff)
downloadFreeBSD-src-587970fdc3a5e96f3ae648daf6d10fddfd60310d.zip
FreeBSD-src-587970fdc3a5e96f3ae648daf6d10fddfd60310d.tar.gz
sizeof(struct llc) -> LLC_SNAPFRAMELEN
sizeof(struct ether_header) -> ETHER_HDR_LEN sizeof(struct fddi_header) -> FDDI_HDR_LEN
Diffstat (limited to 'sys/net/if_vlan.c')
-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 abef591..4e55f14 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -355,7 +355,7 @@ vlan_start(struct ifnet *ifp)
* with 802.1Q encapsulation.
*/
bcopy(mtod(m, char *) + ifv->ifv_encaplen,
- mtod(m, char *), sizeof(struct ether_header));
+ mtod(m, char *), ETHER_HDR_LEN);
evl = mtod(m, struct ether_vlan_header *);
evl->evl_proto = evl->evl_encap_proto;
evl->evl_encap_proto = htons(ETHERTYPE_VLAN);
@@ -446,7 +446,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m)
*/
bcopy(mtod(m, caddr_t),
mtod(m, caddr_t) + ETHER_VLAN_ENCAP_LEN,
- sizeof (struct ether_header));
+ ETHER_HDR_LEN);
m_adj(m, ETHER_VLAN_ENCAP_LEN);
}
OpenPOWER on IntegriCloud