ether_type
u_short ether_type;
*etype = ntohs(eh->ether_type);
eh->ether_type = htons(etype);
rc = STP_IN_check_bpdu_header((BPDU_T *)&eh->ether_type, buflen);
(BPDU_T *)&eh->ether_type, buflen);
ethertype = ntohs(e->ether_type);
ethertype = ntohs(evx->ether_type);
uint16_t ether_type = 0;
e += (offsetof(struct ether_header, ether_type));
GETINT16(ether_type, e);
if (ether_type == (uint16_t)ETHERTYPE_VLAN) {
} ether_type [] = {
for (i = 0; ether_type[i].e_type; i++)
if (type == ether_type[i].e_type)
return (ether_type[i].e_name);
ethertype = ntohs(inner_ethvlanhdr->ether_type);
if (inner_ethhdr->ether_type != htons(ETHERTYPE_VLAN)) {
ntohs(inner_ethhdr->ether_type));
#define ENCAP_ETHERTYPE_OFF (offsetof(struct ether_vlan_header, ether_type) -\
sap = ntohs(ehp->ether_type);
sap = ntohs(evhp->ether_type);
eh->ether_type = htons(ETHERTYPE_ARP);
eh->ether_type = htons(ETHERTYPE_ARP);
if (in->arp_eh.ether_type !=
if (in->arp_eh.ether_type !=
out.arp_eh.ether_type = htons(ETHERTYPE_ARP);
out.arp_eh.ether_type = htons(ETHERTYPE_REVARP);
if (eh->ether_type == ntohs(ETHERTYPE_IP) &&
if (eh->ether_type == ntohs(ETHERTYPE_ARP) &&
eh.ether_type = htons(ETHERTYPE_IP);
.ether_type = htons(ethertype),
.ether_type = htons(ETHERTYPE_IP),
.ether_type = htons(ETHERTYPE_IP),
if (pether->ether_type != htons(ETHERTYPE_IPV6)) {
if (pether->ether_type != htons(ETHERTYPE_IP)) {
if ((etype = ntohs(ethp->ether_type)) == ETHERTYPE_VLAN) {
etype = ntohs(evh->ether_type);
hdr.mhi_bindsap = ntohs(evhp->ether_type);
if (ntohs(ehp->ether_type) == ETHERTYPE_SLOW) {
ether->ether_type = htons(ETHERTYPE_SLOW);
sap = ntohs(ehp->ether_type);
etype = ntohs(((struct ether_header *)pHdr)->ether_type);
etype = ntohs(((struct ether_vlan_header *)pHdr)->ether_type);
if (((struct ether_header *)pMblk->b_rptr)->ether_type ==
if (((struct ether_header *)pL2Hdr)->ether_type == htons(ETHERTYPE_VLAN))
evh->ether_tpid = evh->ether_type;
evh->ether_type = evh->ether_tpid;
uint16_t ether_type;
ether_type = ntohs(evhp->ether_type);
hdr_info->mhi_origsap = ether_type;
hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ?
ether_type : DLS_SAP_LLC;
ether_type != htons(ETHERTYPE_TRILL))) {
if (ehdr->ether_type == htons(ETHERTYPE_IP)) {
(ntohs(((struct ether_header *)skb->b_rptr)->ether_type) ==
evhp->ether_type = ehp->ether_type;
evhp->ether_type = htons(sap);
fmi->fmi_efh->ether_type = htons(ETHERTYPE_FCOE);
if (ntohs(eh->ether_type) == VLAN_TPID) {
etype = ntohs(evh->ether_type);
etype = ntohs(eh->ether_type);
etherType = ntohs(ethvhdr->ether_type);
etherType = ntohs(ethhdr->ether_type);
etherType = ntohs(ethvhdr->ether_type);
etherType = ntohs(ethhdr->ether_type);
etherType = ntohs(ethvhdr->ether_type);
etherType = ntohs(ethhdr->ether_type);
pktinfo->ethertype = REF_NET_USHORT(mh->ether_type);
typelen = REF_NET_USHORT(mh->ether_type);
bcopy(&ehp->ether_type, &evhp->ether_type, sizeof (uint16_t));
uint16_t ether_type;
uint16_t ether_type;
uint16_t ether_type;
eth_type = ntohs(((p_ether_header_t)hdrs_buf)->ether_type);
hdrs_buf)->ether_type);
((p_ether_header_t)hdrs_buf)->ether_type = 0;
((p_ether_header_t)hdrs_buf)->ether_type = 0;
evh->eh_ether_type = ntohs(hdr->ether_type);
evh->eh_ether_type = ntohs(vl_hdr->ether_type);
offset = offsetof(struct ether_header, ether_type);
offset = offsetof(struct ether_vlan_header, ether_type);
offset = offsetof(struct ether_header, ether_type);
offset = offsetof(struct ether_vlan_header, ether_type);
hdr->ether_type = ntohs(msglen +
hdr->ether_type = ntohs(msglen);
i = (ushort_t)ntohs(hdr->ether_type);
msgether->ether_type = htons(sizeof (struct llchdr_xid) +
hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp));
hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp));
if (ntohs(eth->ether_type) == ETHERTYPE_VLAN) {
sap = ntohs(evhp->ether_type);
l2->l2_sap = ntohs(evhp->ether_type);
l2->l2_sap = ntohs(evhp->ether_type);
l2_off + offsetof(struct ether_header, ether_type), ðertype)) {
l2_off + offsetof(struct ether_vlan_header, ether_type),
if (ntohs(ehp->ether_type) == VLAN_TPID)
evhp->ether_type = ehp->ether_type;
sap = ntohs(ehp->ether_type);
sap = ntohs(evhp->ether_type);
ehp->ether_type = htons(sap);
uint16_t ether_type;
ether_type = ntohs(ehp->ether_type);
hdr_info->mhi_origsap = ether_type;
hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ?
ether_type : DLS_SAP_LLC;
hdr_info->mhi_hdrsize + ether_type : 0;
ntohs(ehp->ether_type), pdata, NULL, 0);
eh.ether_type = htons(mhi.mhi_origsap);
if (eh->ether_type != BE_16(ETHERTYPE_IP)) {
if (eh->ether_type != BE_16(ETHERTYPE_VLAN))
if (vh->ether_type != BE_16(ETHERTYPE_IP))
if (eh->ether_type == BE_16(ETHERTYPE_VLAN)) {
if (eh->ether_type == BE_16(ETHERTYPE_IP)) {
} else if (eh->ether_type == BE_16(ETHERTYPE_IPV6)) {
if (eh->ether_type == BE_16(ETHERTYPE_VLAN)) {
if (eh->ether_type != htons(ETHERTYPE_IP))
framelen = ntohs(eh->ether_type); /* llc + data */
type = ((struct ether_header *)(uintptr_t)mp->b_rptr)->ether_type;
(uintptr_t)mp->b_rptr)->ether_type;
type = ((struct ether_header *)(uintptr_t)ptr)->ether_type;
type = ((struct ether_vlan_header *)(uintptr_t)ptr)->ether_type;
eth_type = ntohs(((p_ether_header_t)hdrs_buf)->ether_type);
hdrs_buf)->ether_type);
((p_ether_header_t)hdrs_buf)->ether_type = 0;
((p_ether_header_t)hdrs_buf)->ether_type = 0;
((struct ether_header *)eh->b_rptr)->ether_type = htons((int16_t)type);
if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) {
pktinfo->ether_type = ntohs(eth_hdr->ether_type);
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
pktinfo->ether_type = ntohs(vlan_hdr->ether_type);
pktinfo.total_len, pktinfo.mblk_no, pktinfo.ether_type,
etherType = ntohs(ethvhdr->ether_type);
etherType = ntohs(ethhdr->ether_type);
if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) {
pktinfo->ether_type = ntohs(eth_hdr->ether_type);
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
pktinfo->ether_type = ntohs(vlan_hdr->ether_type);
if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) {
pktinfo->ether_type = ntohs(eth_hdr->ether_type);
} else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) {
pktinfo->ether_type = ntohs(vlan_hdr->ether_type);
u16 ether_type;
if (ntohs(ethhdr->ether_type) == ETHERTYPE_IP) {
ASSERT3U(((etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
if (etherhp->ether_type == htons(ETHERTYPE_VLAN)) {
if (etherhp->ether_type ==
if (ether_type == htons(ETHERTYPE_VLAN)) {
ether_type = ethervhp->ether_type;
if (ether_type != htons(ETHERTYPE_IP))
uint16_t ether_type;
ether_type = etherhp->ether_type;
ehs = (etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
ASSERT3U(((etherhp->ether_type == htons(ETHERTYPE_VLAN)) ?
ethvlanhdr->ether_type = htons(etype);
ethtype = ntohs(ethhdr->ether_type);
if (ethhdr->ether_type == htons(ETHERTYPE_VLAN)) {
if (ether->ether_type == htons(ETHERTYPE_VLAN)) {
ushort_t ether_type;
ushort_t ether_type;
ushort_t ether_type;
if (ntohs(((struct ether_header *)(mp)->b_rptr)->ether_type) == \
uint16_t ether_type;
if (ntohs(ehp->ether_type) == VLAN_TPID) {
sap = ntohs(evhp->ether_type);
sap = ntohs(ehp->ether_type);
if (ntohs(ehp->ether_type) == VLAN_TPID) {
sap = ntohs(evhp->ether_type);
sap = ntohs(ehp->ether_type);
ehp->ether_type != htons(ETHERTYPE_VLAN)) {
sizeof (evhp->ether_type));
if (ehp->ether_type == ETHERTYPE_VLAN) {
if (ehp->ether_type == types[i]) {
if (ehp->ether_type == types[i]) {
ehp->ether_type = htons(ETHERTYPE_REVARP);
if (ehp->ether_type != ETHERTYPE_VLAN) { /* untagged */
if (ehp->ether_type == ETHERTYPE_VLAN) {