/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_trill.c | 37 interpret_trill(int flags, struct ether_header **e, char *data, int *alen) in interpret_trill() 40 struct ether_header *inner_ethhdr; in interpret_trill() 85 if (dlen < sizeof (struct ether_header)) { in interpret_trill() 91 inner_ethhdr = (struct ether_header *)(data + trillhdrlen); in interpret_trill()
|
H A D | snoop_ether.c | 130 struct ether_header *e = (struct ether_header *)header; in interpret_ether() 180 len = elen - sizeof (struct ether_header); in interpret_ether() 328 e = (struct ether_header *)data; in interpret_ether() 394 if (msgsize < sizeof (struct ether_header)) in ether_header_len() 397 e += (offsetof(struct ether_header, ether_type)); in ether_header_len() 404 return (sizeof (struct ether_header)); in ether_header_len()
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ethernet.c | 62 struct ether_header arp_eh; 272 return (sizeof (struct ether_header)); in ether_header_len() 294 struct ether_header *eh; in ether_input() 330 bzero(mac_state.mac_buf, sizeof (struct ether_header)); in ether_input() 378 eh = (struct ether_header *)mac_state.mac_buf; in ether_input() 380 len >= (sizeof (struct ether_header) + in ether_input() 394 offset = sizeof (struct ether_header); in ether_input() 417 len >= (sizeof (struct ether_header) + in ether_input() 429 sizeof (struct ether_header)); in ether_input() 494 struct ether_header eh; in ether_output() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | ether.c | 59 struct ether_header *eh; in sendether() 66 eh = (struct ether_header *)pkt - 1; in sendether() 92 struct ether_header *eh; in readether() 107 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
|
H A D | arp.c | 78 struct ether_header eh; in arpwhohas() 127 struct ether_header *eh; in arpwhohas() 129 eh = (struct ether_header *)((uintptr_t)pkt + ETHER_ALIGN); in arpwhohas()
|
H A D | ip.c | 185 struct ether_header *eh; in readipv4() 324 ipr->ip_total_size += sizeof (struct ether_header); in readipv4() 366 eh = (struct ether_header *)((uintptr_t)ipr->ip_pkt + 2); in readipv4()
|
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 378 struct ether_header *ehp; in mac_wifi_header_cook() 381 if (MBLKL(mp) < sizeof (struct ether_header)) in mac_wifi_header_cook() 395 mp->b_rptr += sizeof (struct ether_header); in mac_wifi_header_cook() 409 struct ether_header eh; in mac_wifi_header_uncook() 429 ASSERT(mhi.mhi_hdrsize >= sizeof (struct ether_header)); in mac_wifi_header_uncook() 430 mp->b_rptr += mhi.mhi_hdrsize - sizeof (struct ether_header); in mac_wifi_header_uncook() 431 bcopy(&eh, mp->b_rptr, sizeof (struct ether_header)); in mac_wifi_header_uncook()
|
H A D | mac_ether.c | 432 struct ether_header *ehp; in mac_ether_header() 439 mp = allocb(sizeof (struct ether_header) + extra_len, BPRI_HI); in mac_ether_header() 455 mp->b_wptr += sizeof (struct ether_header); in mac_ether_header() 463 struct ether_header *ehp; in mac_ether_header_info() 466 if (MBLKL(mp) < sizeof (struct ether_header)) in mac_ether_header_info() 472 hdr_info->mhi_hdrsize = sizeof (struct ether_header); in mac_ether_header_info()
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_arp.c | 56 struct ether_header *vdq_ether; 92 otl->otl_hdrsize < sizeof (struct ether_header)) { in libvarpd_plugin_proxy_arp() 160 struct ether_header *ether; in libvarpd_proxy_arp_fini() 182 ether = (struct ether_header *)vaq->vaq_buf; in libvarpd_proxy_arp_fini() 398 struct ether_header *ether; in libvarpd_proxy_ndp_fini() 410 ether = (struct ether_header *)resp; in libvarpd_proxy_ndp_fini() 495 struct ether_header *ether; in libvarpd_plugin_proxy_dhcp() 541 ether = (struct ether_header *)vdq->vdq_buf; in libvarpd_plugin_proxy_dhcp() 628 struct ether_header *eh; in libvarpd_inject_arp() 629 eh = (struct ether_header *)(buf + bsize); in libvarpd_inject_arp() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_tcp.c | 65 sfxge_pkthdr_parse(mblk_t *mp, struct ether_header **etherhpp, in sfxge_pkthdr_parse() 70 struct ether_header *etherhp; in sfxge_pkthdr_parse() 93 etherhs = sizeof (struct ether_header); in sfxge_pkthdr_parse() 98 etherhp = (struct ether_header *)(mp->b_rptr); in sfxge_pkthdr_parse()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_recv.c | 87 struct ether_header *ehp; in aggr_recv_path_cb() 94 if (MBLKL(cmp) < sizeof (struct ether_header)) { in aggr_recv_path_cb() 119 ehp = (struct ether_header *)cmp->b_rptr; in aggr_recv_path_cb()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | llc1.c | 1318 struct ether_header *hdr; in llc1_unitdata() 1504 struct ether_header *hdr; in llc1_recv() 1511 sizeof (struct ether_header)); in llc1_recv() 2149 struct ether_header *hdr; in llc1_form_udata() 2270 struct ether_header *hdr, *msgether; in llc1_xid_reply() 2365 struct ether_header *hdr; in llc1_xid_ind_con() 2437 sizeof (struct ether_header) + in llc1_xid_ind_con() 2461 struct ether_header *hdr; in llc1_xid_req_res() 2615 struct ether_header *hdr; in llc1_test_ind_con() 2686 sizeof (struct ether_header) + in llc1_test_ind_con() [all …]
|
H A D | gldutil.c | 99 ASSERT(sizeof (struct ether_header) == 14); in gld_init_ether() 146 struct ether_header *mh; in gld_interpret_ether() 164 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 194 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 341 struct ether_header *mh; in gld_unitdata_ether() 366 hdrlen = sizeof (struct ether_header); in gld_unitdata_ether() 410 mh = (struct ether_header *)nmp->b_rptr; in gld_unitdata_ether() 431 struct ether_header *ehp; in gld_insert_vtag_ether() 482 struct ether_header *mh; in gld_fastpath_ether() 507 hdrlen = sizeof (struct ether_header); in gld_fastpath_ether() [all …]
|
H A D | trill.c | 153 struct ether_header *inner_ethhdr; in trill_recv_local() 156 inner_ethhdr = (struct ether_header *)mp->b_rptr; in trill_recv_local() 157 DTRACE_PROBE1(trill__recv__local, struct ether_header *, inner_ethhdr); in trill_recv_local() 201 struct ether_header *ethhdr; in trill_dest_fwd() 228 ethhdr = (struct ether_header *)fwd_mp->b_rptr; in trill_dest_fwd() 233 ethhdrlen = sizeof (struct ether_header) + in trill_dest_fwd() 383 struct ether_header *ethhdr; in trill_recv() 428 sizeof (struct ether_header); in trill_recv() 443 ethhdr = (struct ether_header *)(mp->b_rptr + trillhdrlen); in trill_recv() 452 ethhdr = (struct ether_header *)(mp->b_rptr + in trill_recv()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_switching.c | 459 struct ether_header *ehp; in vsw_switch_l2_frame() 474 ehp = (struct ether_header *)bp->b_rptr; in vsw_switch_l2_frame() 604 struct ether_header *ehp; in vsw_switch_l3_frame() 624 ehp = (struct ether_header *)bp->b_rptr; in vsw_switch_l3_frame() 790 struct ether_header *ehp = (struct ether_header *)mp->b_rptr; in vsw_forward_grp() 1245 struct ether_header *ehp; in vsw_vlan_frame_pretag() 1273 ehp = (struct ether_header *)bp->b_rptr; in vsw_vlan_frame_pretag() 1330 struct ether_header *ehp; in vsw_vlan_frame_untag() 1385 ehp = (struct ether_header *)bp->b_rptr; in vsw_vlan_frame_untag() 1899 struct ether_header *behp; in vsw_get_same_dest_list() [all …]
|
H A D | vnet_common.c | 117 mp->b_rptr += sizeof (struct ether_header); in vnet_vlan_insert_tag() 150 nmp = allocb(sizeof (struct ether_header), BPRI_MED); in vnet_vlan_remove_tag() 170 nmp->b_wptr += sizeof (struct ether_header); in vnet_vlan_remove_tag()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 150 struct ether_header *ehp; in inet_pkt_hash() 166 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in inet_pkt_hash() 170 ehp = (struct ether_header *)mp->b_rptr; in inet_pkt_hash() 204 skip_len = sizeof (struct ether_header); in inet_pkt_hash()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 378 struct ether_header *ehp; in mac_sw_cksum() 398 ehp = (struct ether_header *)mp->b_rptr; in mac_sw_cksum() 901 oehlen = sizeof (struct ether_header); in mac_sw_lso() 1331 struct ether_header *ehp; in mac_hw_emul() 1349 ehp = (struct ether_header *)mp->b_rptr; in mac_hw_emul() 1353 l2len = sizeof (struct ether_header); in mac_hw_emul() 1439 struct ether_header *ehp; in mac_add_vlan_tag() 1456 ehp = (struct ether_header *)mp->b_rptr; in mac_add_vlan_tag() 2002 struct ether_header *ehp; in mac_pkt_hash() 2023 ehp = (struct ether_header *)mp->b_rptr; in mac_pkt_hash() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/ |
H A D | bnxe_rr.c | 72 etype = ntohs(((struct ether_header *)pHdr)->ether_type); in BnxeRouteTxRing() 81 eHdrSize = sizeof(struct ether_header); in BnxeRouteTxRing()
|
/illumos-gate/usr/src/uts/common/io/fcoe/ |
H A D | fcoe.h | 186 struct ether_header *fmi_efh; /* 14 bytes eth header */ 219 #define PADDING_HEADER_SIZE (sizeof (struct ether_header) + \
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_rxtx.c | 490 struct ether_header *ethhdr; in rge_send_copy() 579 ASSERT(totlen >= sizeof (struct ether_header) + in rge_send_copy() 581 ethhdr = (struct ether_header *)(DMA_VPTR(ssbdp->pbuf)); in rge_send_copy() 588 sizeof (struct ether_header)); in rge_send_copy() 631 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in rge_send()
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_dbg.c | 70 struct ether_header *eth_hdr = in qede_dbg_ipv6_ext_hdr() 71 (struct ether_header *)(void *)mp->b_rptr; in qede_dbg_ipv6_ext_hdr() 78 pktinfo->mac_hlen = sizeof (struct ether_header); in qede_dbg_ipv6_ext_hdr()
|
H A D | qede_fp.c | 859 struct ether_header *eth_hdr = in qede_pkt_parse_lso_headers() 860 (struct ether_header *)(void *)mp->b_rptr; in qede_pkt_parse_lso_headers() 867 pktinfo->mac_hlen = sizeof (struct ether_header); in qede_pkt_parse_lso_headers() 919 struct ether_header *eth_hdr = in qede_get_pkt_info() 920 (struct ether_header *)(void *)mp->b_rptr; in qede_get_pkt_info() 941 pktinfo->mac_hlen = sizeof (struct ether_header); in qede_get_pkt_info() 1738 struct ether_header *ethhdr; in qede_hash_get_txq() 1756 ethhdr = (struct ether_header *)((void *)bp); in qede_hash_get_txq() 1764 mac_hdr_len = sizeof (struct ether_header); in qede_hash_get_txq()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ethernet.h | 59 struct ether_header { struct
|
/illumos-gate/usr/src/uts/intel/io/viona/ |
H A D | viona_tx.c | 335 const struct ether_header *eth; in viona_tx_csum() 336 uint_t eth_len = sizeof (struct ether_header); in viona_tx_csum() 360 eth = (const struct ether_header *)mp->b_rptr; in viona_tx_csum()
|