Home
last modified time | relevance | path

Searched refs:ether_header (Results 1 – 25 of 103) sorted by relevance

12345

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_trill.c37 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 Dsnoop_ether.c130 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 Dethernet.c62 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 Dether.c59 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 Darp.c78 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 Dip.c185 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 Dmac_wifi.c378 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 Dmac_ether.c432 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 Dlibvarpd_arp.c56 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 Dsfxge_tcp.c65 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 Daggr_recv.c87 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 Dllc1.c1318 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 Dgldutil.c99 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 Dtrill.c153 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 Dvsw_switching.c459 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 Dvnet_common.c117 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 Dinet_hash.c150 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 Dmac_util.c378 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 Dbnxe_rr.c72 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 Dfcoe.h186 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 Drge_rxtx.c490 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 Dqede_dbg.c70 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 Dqede_fp.c859 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 Dethernet.h59 struct ether_header { struct
/illumos-gate/usr/src/uts/intel/io/viona/
H A Dviona_tx.c335 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()

12345