Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c71 uint16_t ether_type; in sfxge_pkthdr_parse() local
99 ether_type = etherhp->ether_type; in sfxge_pkthdr_parse()
101 if (ether_type == htons(ETHERTYPE_VLAN)) { in sfxge_pkthdr_parse()
110 ether_type = ethervhp->ether_type; in sfxge_pkthdr_parse()
113 if (ether_type != htons(ETHERTYPE_IP)) in sfxge_pkthdr_parse()
/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ether.c453 ehp->ether_type = htons(sap); in mac_ether_header()
464 uint16_t ether_type; in mac_ether_header_info() local
470 ether_type = ntohs(ehp->ether_type); in mac_ether_header_info()
475 hdr_info->mhi_origsap = ether_type; in mac_ether_header_info()
476 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in mac_ether_header_info()
477 ether_type : DLS_SAP_LLC; in mac_ether_header_info()
479 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()
/illumos-gate/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.c172 ethertype = ntohs(e->ether_type); in interpret_ether()
203 ethertype = ntohs(evx->ether_type); in interpret_ether()
392 uint16_t ether_type = 0; in ether_header_len() local
397 e += (offsetof(struct ether_header, ether_type)); in ether_header_len()
399 GETINT16(ether_type, e); in ether_header_len()
401 if (ether_type == (uint16_t)ETHERTYPE_VLAN) { in ether_header_len()
415 struct ether_type { struct
418 } ether_type [] = { argument
690 for (i = 0; ether_type[i].e_type; i++) in print_ethertype()
691 if (type == ether_type[i].e_type) in print_ethertype()
[all …]
H A Dsnoop_vlan.h41 #define ENCAP_ETHERTYPE_OFF (offsetof(struct ether_vlan_header, ether_type) -\
/illumos-gate/usr/src/uts/common/sys/
H A Dethernet.h62 ushort_t ether_type; member
72 ushort_t ether_type; member
81 ushort_t ether_type; member
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_dbg.c76 if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) { in qede_dbg_ipv6_ext_hdr()
77 pktinfo->ether_type = ntohs(eth_hdr->ether_type); in qede_dbg_ipv6_ext_hdr()
79 } else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) { in qede_dbg_ipv6_ext_hdr()
82 pktinfo->ether_type = ntohs(vlan_hdr->ether_type); in qede_dbg_ipv6_ext_hdr()
H A Dqede_fp.c865 if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) { in qede_pkt_parse_lso_headers()
866 pktinfo->ether_type = ntohs(eth_hdr->ether_type); in qede_pkt_parse_lso_headers()
868 } else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) { in qede_pkt_parse_lso_headers()
871 pktinfo->ether_type = ntohs(vlan_hdr->ether_type); in qede_pkt_parse_lso_headers()
939 if (ntohs(eth_hdr->ether_type) == ETHERTYPE_IP) { in qede_get_pkt_info()
940 pktinfo->ether_type = ntohs(eth_hdr->ether_type); in qede_get_pkt_info()
942 } else if (ntohs(eth_hdr->ether_type) == ETHERTYPE_VLAN) { in qede_get_pkt_info()
945 pktinfo->ether_type = ntohs(vlan_hdr->ether_type); in qede_get_pkt_info()
1502 pktinfo.total_len, pktinfo.mblk_no, pktinfo.ether_type, in qede_send_tx_packet()
1762 etherType = ntohs(ethvhdr->ether_type); in qede_hash_get_txq()
[all …]
H A Dqede_fp.h130 u16 ether_type; member
/illumos-gate/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()
/illumos-gate/usr/src/boot/libsa/
H A Dether.c71 eh->ether_type = htons(etype); in sendether()
122 *etype = ntohs(eh->ether_type); in readether()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_classify.h72 uint16_t ether_type; member
H A Dhxge_flow.h93 uint16_t ether_type; member
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c184 sap = ntohs(ehp->ether_type); in inet_pkt_hash()
201 sap = ntohs(evhp->ether_type); in inet_pkt_hash()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c399 if (ntohs(ehp->ether_type) == VLAN_TPID) { in mac_sw_cksum()
403 etype = ntohs(evhp->ether_type); in mac_sw_cksum()
406 etype = ntohs(ehp->ether_type); in mac_sw_cksum()
1350 if (ntohs(ehp->ether_type) == VLAN_TPID) in mac_hw_emul()
1459 evhp->ether_type = ehp->ether_type; in mac_add_vlan_tag()
2037 sap = ntohs(ehp->ether_type); in mac_pkt_hash()
2054 sap = ntohs(evhp->ether_type); in mac_pkt_hash()
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_recv.c121 sap = ntohs(ehp->ether_type); in aggr_recv_path_cb()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet_common.c114 sizeof (evhp->ether_type)); in vnet_vlan_insert_tag()
/illumos-gate/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()
/illumos-gate/usr/src/uts/intel/io/viona/
H A Dviona_tx.c361 ftype = ntohs(eth->ether_type); in viona_tx_csum()
369 ftype = ntohs(veth->ether_type); in viona_tx_csum()
/illumos-gate/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()
/illumos-gate/usr/src/boot/include/net/
H A Dethernet.h63 u_short ether_type; member
/illumos-gate/usr/src/uts/common/sys/nxge/
H A Dnxge_flow.h99 uint16_t ether_type; member
/illumos-gate/usr/src/uts/common/io/
H A Dbridge.c1782 evh->ether_tpid = evh->ether_type; in reform_vlan_header()
1808 evh->ether_type = evh->ether_tpid; in reform_vlan_header()
1821 uint16_t ether_type; in update_header() local
1832 ether_type = ntohs(evhp->ether_type); in update_header()
1833 hdr_info->mhi_origsap = ether_type; in update_header()
1834 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in update_header()
1835 ether_type : DLS_SAP_LLC; in update_header()
2295 ether_type != htons(ETHERTYPE_TRILL))) { in bridge_recv_cb()

123