| /illumos-gate/usr/src/stand/lib/inet/ |
| H A D | ethernet.c | 62 struct ether_header arp_eh; 64 #define USED_SIZE (sizeof (struct ether_header) + sizeof (struct ether_arp)) 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() [all …]
|
| /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/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 | 207 struct ether_header *eh; in readipv4() 377 ipr->ip_total_size = n + sizeof (*ip) + sizeof (struct ether_header); in readipv4() 387 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() 522 otl->otl_hdrsize < sizeof (struct ether_header)) { 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() [all …]
|
| /illumos-gate/usr/src/test/os-tests/tests/mac/ |
| H A D | mac_parsing.c | 120 struct ether_header hdr_ether = { in append_ether() 170 .meoi_l2hlen = sizeof (struct ether_header), in build_tcp4() 193 .meoi_l2hlen = sizeof (struct ether_header), in build_tcp6() 223 .meoi_l2hlen = sizeof (struct ether_header), in build_frag_v4() 268 VERIFY(tp->tp_sz == sizeof (struct ether_header)); in build_frag_v6() 273 const size_t l3sz = tp->tp_sz - sizeof (struct ether_header); in build_frag_v6() 280 .meoi_l2hlen = sizeof (struct ether_header), in build_frag_v6() 310 .meoi_l2hlen = sizeof (struct ether_header), in build_frag_off_v4() 354 VERIFY(tp->tp_sz == sizeof (struct ether_header)); in build_frag_off_v6() 359 const size_t l3sz = tp->tp_sz - sizeof (struct ether_header); in build_frag_off_v6() [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/ |
| H A D | llc1.c | 1318 struct ether_header *hdr; in llc1_unitdata() 1353 hdr = (struct ether_header *)nmp->b_rptr; in llc1_unitdata() 1504 struct ether_header *hdr; in llc1_recv() 1508 hdr = (struct ether_header *)mp->b_rptr; in llc1_recv() 1511 sizeof (struct ether_header)); in llc1_recv() 1514 (void) adjmsg(mp, i + sizeof (struct ether_header) - in llc1_recv() 2149 struct ether_header *hdr; in llc1_form_udata() 2154 hdr = (struct ether_header *)mp->b_rptr; in llc1_form_udata() 2170 mp->b_rptr += sizeof (struct ether_header) + in llc1_form_udata() 2173 mp->b_rptr += sizeof (struct ether_header); in llc1_form_udata() [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() 162 if (MBLKL(mp) < sizeof (struct ether_header)) in gld_interpret_ether() 164 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 168 pktinfo->macLen = sizeof (struct ether_header); in gld_interpret_ether() 178 if (pktinfo->pktLen < sizeof (struct ether_header)) in gld_interpret_ether() 182 if (MBLKL(mp) < sizeof (struct ether_header)) { in gld_interpret_ether() 194 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 263 pktinfo->macLen = sizeof (struct ether_header); in gld_interpret_ether() 278 (sizeof (struct ether_header) + typelen); in gld_interpret_ether() [all …]
|
| H A D | trill.c | 154 struct ether_header *inner_ethhdr; in trill_recv_local() 157 inner_ethhdr = (struct ether_header *)mp->b_rptr; in trill_recv_local() 158 DTRACE_PROBE1(trill__recv__local, struct ether_header *, inner_ethhdr); in trill_recv_local() 202 struct ether_header *ethhdr; in trill_dest_fwd() 229 ethhdr = (struct ether_header *)fwd_mp->b_rptr; in trill_dest_fwd() 234 ethhdrlen = sizeof (struct ether_header) + in trill_dest_fwd() 384 struct ether_header *ethhdr; in trill_recv() 429 sizeof (struct ether_header); in trill_recv() 444 ethhdr = (struct ether_header *)(mp->b_rptr + trillhdrlen); in trill_recv() 453 ethhdr = (struct ether_header *)(mp->b_rptr + in trill_recv()
|
| /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/sun4v/io/ |
| H A D | vsw_switching.c | 102 boolean_t vsw_frame_lookup_vid(void *arg, int caller, struct ether_header *ehp, 121 static mblk_t *vsw_get_same_dest_list(struct ether_header *ehp, mblk_t **mpp); 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() [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/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 | 463 struct ether_header *ethhdr; in rge_send_copy() 552 ASSERT(totlen >= sizeof (struct ether_header) + in rge_send_copy() 554 ethhdr = (struct ether_header *)(DMA_VPTR(ssbdp->pbuf)); in rge_send_copy() 561 sizeof (struct ether_header)); in rge_send_copy() 604 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in rge_send()
|
| /illumos-gate/usr/src/uts/common/io/mac/ |
| H A D | mac_util.c | 1247 struct ether_header *ehp; in mac_hw_emul() 1259 if (len < sizeof (struct ether_header)) { in mac_hw_emul() 1265 ehp = (struct ether_header *)mp->b_rptr; in mac_hw_emul() 1269 l2len = sizeof (struct ether_header); in mac_hw_emul() 1355 struct ether_header *ehp; in mac_add_vlan_tag() 1372 ehp = (struct ether_header *)mp->b_rptr; in mac_add_vlan_tag() 1379 mp->b_rptr += sizeof (struct ether_header); in mac_add_vlan_tag() 1918 struct ether_header *ehp; in mac_pkt_hash() 1935 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in mac_pkt_hash() 1939 ehp = (struct ether_header *)mp->b_rptr; in mac_pkt_hash() [all …]
|
| /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 | 850 struct ether_header *eth_hdr = in qede_pkt_parse_lso_headers() 851 (struct ether_header *)(void *)mp->b_rptr; in qede_pkt_parse_lso_headers() 858 pktinfo->mac_hlen = sizeof (struct ether_header); in qede_pkt_parse_lso_headers() 910 struct ether_header *eth_hdr = in qede_get_pkt_info() 911 (struct ether_header *)(void *)mp->b_rptr; in qede_get_pkt_info() 932 pktinfo->mac_hlen = sizeof (struct ether_header); in qede_get_pkt_info() 1729 struct ether_header *ethhdr; in qede_hash_get_txq() 1747 ethhdr = (struct ether_header *)((void *)bp); in qede_hash_get_txq() 1755 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
|