Home
last modified time | relevance | path

Searched refs:ether_type (Results 1 – 25 of 60) sorted by relevance

123

/titanic_41/usr/src/uts/common/io/mac/plugins/
H A Dmac_ether.c428 ehp->ether_type = htons(sap); in mac_ether_header()
439 uint16_t ether_type; in mac_ether_header_info() local
445 ether_type = ntohs(ehp->ether_type); in mac_ether_header_info()
450 hdr_info->mhi_origsap = ether_type; in mac_ether_header_info()
451 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in mac_ether_header_info()
452 ether_type : DLS_SAP_LLC; in mac_ether_header_info()
454 hdr_info->mhi_hdrsize + ether_type : 0; in mac_ether_header_info()
H A Dmac_wifi.c386 ntohs(ehp->ether_type), pdata, NULL, 0); in mac_wifi_header_cook()
427 eh.ether_type = htons(mhi.mhi_origsap); in mac_wifi_header_uncook()
/titanic_41/usr/src/uts/common/sys/
H A Dethernet.h61 ushort_t ether_type; member
71 ushort_t ether_type; member
80 ushort_t ether_type; member
H A Dmac_client_impl.h266 if (ntohs(((struct ether_header *)(mp)->b_rptr)->ether_type) == \
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_trill.c92 if (inner_ethhdr->ether_type != htons(ETHERTYPE_VLAN)) { in interpret_trill()
95 ntohs(inner_ethhdr->ether_type)); in interpret_trill()
100 ethertype = ntohs(inner_ethvlanhdr->ether_type); in interpret_trill()
H A Dsnoop_ether.c170 ethertype = ntohs(e->ether_type); in interpret_ether()
201 ethertype = ntohs(evx->ether_type); in interpret_ether()
390 uint16_t ether_type = 0; in ether_header_len() local
395 e += (offsetof(struct ether_header, ether_type)); in ether_header_len()
397 GETINT16(ether_type, e); in ether_header_len()
399 if (ether_type == (uint16_t)ETHERTYPE_VLAN) { in ether_header_len()
413 struct ether_type { struct
416 } ether_type [] = { argument
688 for (i = 0; ether_type[i].e_type; i++) in print_ethertype()
689 if (type == ether_type[i].e_type) in print_ethertype()
[all …]
H A Dsnoop_vlan.h43 #define ENCAP_ETHERTYPE_OFF (offsetof(struct ether_vlan_header, ether_type) -\
/titanic_41/usr/src/stand/lib/inet/
H A Dethernet.c148 if (in->arp_eh.ether_type != in ether_comarp()
171 if (in->arp_eh.ether_type != in ether_comarp()
221 out.arp_eh.ether_type = htons(ETHERTYPE_ARP); in ether_arp()
253 out.arp_eh.ether_type = htons(ETHERTYPE_REVARP); in ether_revarp()
379 if (eh->ether_type == ntohs(ETHERTYPE_IP) && in ether_input()
416 if (eh->ether_type == ntohs(ETHERTYPE_ARP) && in ether_input()
528 eh.ether_type = htons(ETHERTYPE_IP); in ether_output()
/titanic_41/usr/src/uts/common/io/bnxe/
H A Dbnxe_rr.c72 etype = ntohs(((struct ether_header *)pHdr)->ether_type); in BnxeRouteTxRing()
76 etype = ntohs(((struct ether_vlan_header *)pHdr)->ether_type); in BnxeRouteTxRing()
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac_util.c140 if (ntohs(ehp->ether_type) == VLAN_TPID) { in mac_fix_cksum()
146 sap = ntohs(evhp->ether_type); in mac_fix_cksum()
149 sap = ntohs(ehp->ether_type); in mac_fix_cksum()
343 evhp->ether_type = ehp->ether_type; in mac_add_vlan_tag()
931 sap = ntohs(ehp->ether_type); in mac_pkt_hash()
948 sap = ntohs(evhp->ether_type); in mac_pkt_hash()
/titanic_41/usr/src/uts/common/io/hxge/
H A Dhxge_classify.h74 uint16_t ether_type; member
H A Dhxge_flow.h95 uint16_t ether_type; member
H A Dhxge_pfc.h222 uint16_t ether_type; member
/titanic_41/usr/src/lib/libbc/inc/include/netinet/
H A Dif_ether.h37 u_short ether_type; member
/titanic_41/usr/src/uts/sun4u/starcat/sys/
H A Ddman.h71 ((uint8_t *)(&((ehdr_t *)ptr)->ether_type))[0] = \
73 ((uint8_t *)(&((ehdr_t *)ptr)->ether_type))[1] = (value & 0xff); }
/titanic_41/usr/src/uts/common/io/aggr/
H A Daggr_recv.c119 sap = ntohs(ehp->ether_type); in aggr_recv_cb()
/titanic_41/usr/src/uts/sun4v/io/
H A Dvnet_common.c114 sizeof (evhp->ether_type)); in vnet_vlan_insert_tag()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_tx.c749 if (ntohs(eh->ether_type) == VLAN_TPID) { in oce_send_packet()
752 etype = ntohs(evh->ether_type); in oce_send_packet()
758 etype = ntohs(eh->ether_type); in oce_send_packet()
/titanic_41/usr/src/uts/sun4u/starfire/io/
H A Didn_dlpi.c914 headerp->ether_type = dlap->dl_sap;
1619 headerp->ether_type = (msgsize(mp) -
1622 headerp->ether_type = sap;
1875 if (IS_ETHERTYPE_IPV4(ehp->ether_type) &&
1882 } else if (IS_ETHERTYPE_IPV6(ehp->ether_type) &&
1892 pktlen = ehp->ether_type + sizeof (struct ether_header);
1967 type = ((struct ether_header *)mp->b_rptr)->ether_type;
/titanic_41/usr/src/uts/common/sys/nxge/
H A Dnxge_flow.h99 uint16_t ether_type; member
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Devents.c520 rc = STP_IN_check_bpdu_header((BPDU_T *)&eh->ether_type, buflen); in receive_packet()
552 (BPDU_T *)&eh->ether_type, buflen); in receive_packet()
/titanic_41/usr/src/uts/common/io/
H A Dbridge.c1773 evh->ether_tpid = evh->ether_type; in reform_vlan_header()
1799 evh->ether_type = evh->ether_tpid; in reform_vlan_header()
1812 uint16_t ether_type; in update_header() local
1823 ether_type = ntohs(evhp->ether_type); in update_header()
1824 hdr_info->mhi_origsap = ether_type; in update_header()
1825 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in update_header()
1826 ether_type : DLS_SAP_LLC; in update_header()
2280 ether_type != htons(ETHERTYPE_TRILL))) { in bridge_recv_cb()
H A Dllc1.c1370 hdr->ether_type = ntohs(msglen + in llc1_unitdata()
1392 hdr->ether_type = ntohs(msglen); in llc1_unitdata()
1512 i = (ushort_t)ntohs(hdr->ether_type); in llc1_recv()
2305 msgether->ether_type = htons(sizeof (struct llchdr_xid) + in llc1_xid_reply()
2491 hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp)); in llc1_xid_req_res()
2741 hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp)); in llc1_test_req_res()
/titanic_41/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c150 if (eh->ether_type != htons(ETHERTYPE_IP)) in myri10ge_lro_rx()
/titanic_41/usr/src/uts/common/io/fcoe/
H A Dfcoe_fc.c363 fmi->fmi_efh->ether_type = htons(ETHERTYPE_FCOE); in fcoe_fill_frame_headers()

123