ETHERTYPE_VLAN
(((etype) == ETHERTYPE_VLAN) ? ETHER_VLAN_ENCAP_LEN : 0))
if (ethertype == ETHERTYPE_VLAN) {
if (ether_type == (uint16_t)ETHERTYPE_VLAN) {
if (val != ETHERTYPE_VLAN) {
ethertype_match(ETHERTYPE_VLAN);
ethertype_match(ETHERTYPE_VLAN);
if (ntohs(get_u16(base)) == ETHERTYPE_VLAN)
htons(ETHERTYPE_VLAN));
{ "vlan", ETHERTYPE_VLAN },
if (ethertype == ETHERTYPE_VLAN)
{ "vlan", ETHERTYPE_VLAN },
if (inner_ethhdr->ether_type != htons(ETHERTYPE_VLAN)) {
if (sap == ETHERTYPE_VLAN) {
eh->ether_tpid = htons(ETHERTYPE_VLAN);
.ether_tpid = htons(ETHERTYPE_VLAN),
if ((etype = ntohs(ethp->ether_type)) == ETHERTYPE_VLAN) {
hdr.mhi_bindsap == ETHERTYPE_VLAN) {
ehp->ether_tpid = ntohs(ETHERTYPE_VLAN);
if (ehp->ether_tpid == htons(ETHERTYPE_VLAN)) {
if (etype == ETHERTYPE_VLAN)
htons(ETHERTYPE_VLAN))
if (((struct ether_header *)pL2Hdr)->ether_type == htons(ETHERTYPE_VLAN))
evh->ether_tpid = htons(ETHERTYPE_VLAN);
if (hdr_info->mhi_bindsap == ETHERTYPE_VLAN) {
if (hdr_info->mhi_bindsap == ETHERTYPE_VLAN) {
(hdr_info.mhi_bindsap != ETHERTYPE_VLAN ||
if (hdr_info.mhi_bindsap == ETHERTYPE_VLAN) {
((dsp->ds_sap == ETHERTYPE_VLAN) ||
((dsp->ds_sap == ETHERTYPE_VLAN) ||
*(uint16_t *)(daddr + addr_length) = ETHERTYPE_VLAN;
if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN) {
evhp->ether_tpid = htons(ETHERTYPE_VLAN);
if (sap == ETHERTYPE_VLAN && dsp->ds_promisc == 0) {
if (dsp->ds_sap == ETHERTYPE_VLAN) {
if (dsp->ds_sap == ETHERTYPE_VLAN &&
if (is_ethernet && sap != ETHERTYPE_VLAN &&
mac_sap = ETHERTYPE_VLAN;
ASSERT(sap == ETHERTYPE_VLAN);
ETHERTYPE_VLAN, dls_accept) > 0) {
(mhi.mhi_bindsap == ETHERTYPE_VLAN &&
htons(ETHERTYPE_VLAN))
htons(ETHERTYPE_VLAN))
ehp->ether_tpid = htons(ETHERTYPE_VLAN);
if (ntohs(ethvhdr->ether_tpid) == ETHERTYPE_VLAN) {
if (ntohs(ethvhdr->ether_tpid) == ETHERTYPE_VLAN) {
if (ntohs(ethvhdr->ether_tpid) == ETHERTYPE_VLAN) {
!(GLD_IS_PHYS(gld) && gld->gld_sap == ETHERTYPE_VLAN &&
(GLD_IS_PHYS(gld) && gld->gld_sap == ETHERTYPE_VLAN &&
((gld->gld_sap == ETHERTYPE_VLAN) ||
type = ETHERTYPE_VLAN;
if ((macinfo->gldm_type == DL_ETHER) && (sap == ETHERTYPE_VLAN))
(gld->gld_sap == ETHERTYPE_VLAN)) {
if ((typelen == ETHERTYPE_VLAN) &&
if (get_ether_type(mp->b_rptr) == ETHERTYPE_VLAN) {
if (evh->eh_ether_type != ETHERTYPE_VLAN) {
if (etype == ETHERTYPE_VLAN) {
if (etype == ETHERTYPE_VLAN) {
if (ntohs(eth->ether_type) == ETHERTYPE_VLAN) {
if (is_ethernet && (mhip->mhi_bindsap == ETHERTYPE_VLAN)) {
if (is_ether && mhi.mhi_bindsap == ETHERTYPE_VLAN &&
if ((sap = ntohs(evhp->ether_tpid)) == ETHERTYPE_VLAN &&
if (ethertype == ETHERTYPE_VLAN) {
evhp->ether_tpid = htons(ETHERTYPE_VLAN);
if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN) {
if (sap == ETHERTYPE_VLAN) {
if (eh->ether_type != BE_16(ETHERTYPE_VLAN))
if (eh->ether_type == BE_16(ETHERTYPE_VLAN)) {
if (eh->ether_type == BE_16(ETHERTYPE_VLAN)) {
if (type == htons(ETHERTYPE_VLAN)) {
if (type == htons(ETHERTYPE_VLAN)) {
if (evh->ether_tpid == htons(ETHERTYPE_VLAN))
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
if (ntohs(ethvhdr->ether_tpid) == ETHERTYPE_VLAN) {
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
ehp->ether_tpid = htons(ETHERTYPE_VLAN);
if (ehp->ether_tpid == htons(ETHERTYPE_VLAN))
ASSERT3U(((etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
if (etherhp->ether_type == htons(ETHERTYPE_VLAN)) {
if (ether_type == htons(ETHERTYPE_VLAN)) {
ehs = (etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
ASSERT3U(((etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
tci != TRILL_NO_TCI ? ETHERTYPE_VLAN : etype, mp, extra_hdr_len);
ASSERT(ethtype == ETHERTYPE_VLAN || ethtype == ETHERTYPE_TRILL);
(ethtype == ETHERTYPE_VLAN ? sizeof (struct ether_vlan_extinfo):0);
if (ethhdr->ether_type == htons(ETHERTYPE_VLAN)) {
if (ether->ether_type == htons(ETHERTYPE_VLAN)) {
#ifndef ETHERTYPE_VLAN
(((uint32_t)ETHERTYPE_VLAN << VLAN_TPID_SHIFT) | \
(((uint32_t)ETHERTYPE_VLAN << VLAN_TPID_SHIFT) | (tci))
ETHERTYPE_VLAN) { \
if (eth->ether_tpid == htons(ETHERTYPE_VLAN)) {
if (get_ether_type(mp->b_rptr) == ETHERTYPE_VLAN) {
if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN &&
ehp->ether_type != htons(ETHERTYPE_VLAN)) {
evhp->ether_tpid = htons(ETHERTYPE_VLAN);
evhp->ether_tpid = htons(ETHERTYPE_VLAN);
if (ehp->ether_type == ETHERTYPE_VLAN) {
if (ehp->ether_type != ETHERTYPE_VLAN) { /* untagged */
if (ehp->ether_type == ETHERTYPE_VLAN) {