/titanic_50/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 | 128 struct ether_header *e = (struct ether_header *)header; in interpret_ether() 178 len = elen - sizeof (struct ether_header); in interpret_ether() 326 e = (struct ether_header *)data; in interpret_ether() 392 if (msgsize < sizeof (struct ether_header)) in ether_header_len() 395 e += (offsetof(struct ether_header, ether_type)); in ether_header_len() 402 return (sizeof (struct ether_header)); in ether_header_len()
|
/titanic_50/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 …]
|
/titanic_50/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 | 407 struct ether_header *ehp; in mac_ether_header() 414 mp = allocb(sizeof (struct ether_header) + extra_len, BPRI_HI); in mac_ether_header() 430 mp->b_wptr += sizeof (struct ether_header); in mac_ether_header() 438 struct ether_header *ehp; in mac_ether_header_info() 441 if (MBLKL(mp) < sizeof (struct ether_header)) in mac_ether_header_info() 447 hdr_info->mhi_hdrsize = sizeof (struct ether_header); in mac_ether_header_info()
|
/titanic_50/usr/src/uts/common/io/aggr/ |
H A D | aggr_recv.c | 85 struct ether_header *ehp; in aggr_recv_cb() 92 if (MBLKL(cmp) < sizeof (struct ether_header)) { in aggr_recv_cb() 117 ehp = (struct ether_header *)cmp->b_rptr; in aggr_recv_cb()
|
H A D | aggr_lacp.c | 107 static void fill_lacp_ether(aggr_port_t *, struct ether_header *); 643 len = sizeof (lacp_t) + sizeof (struct ether_header); in lacp_xmit_sm() 651 fill_lacp_ether(portp, (struct ether_header *)mp->b_rptr); in lacp_xmit_sm() 653 (lacp_t *)(mp->b_rptr + sizeof (struct ether_header))); in lacp_xmit_sm() 669 fill_lacp_ether(aggr_port_t *port, struct ether_header *ether) in fill_lacp_ether() 974 ASSERT(MBLKHEAD(mp) >= sizeof (struct ether_header)); in receive_marker_pdu() 975 mp->b_rptr -= sizeof (struct ether_header); in receive_marker_pdu() 976 fill_lacp_ether(portp, (struct ether_header *)mp->b_rptr); in receive_marker_pdu() 2226 dmp->b_rptr += sizeof (struct ether_header); in aggr_lacp_rx_enqueue()
|
/titanic_50/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 | 100 ASSERT(sizeof (struct ether_header) == 14); in gld_init_ether() 147 struct ether_header *mh; in gld_interpret_ether() 163 if (MBLKL(mp) < sizeof (struct ether_header)) in gld_interpret_ether() 165 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 169 pktinfo->macLen = sizeof (struct ether_header); in gld_interpret_ether() 179 if (pktinfo->pktLen < sizeof (struct ether_header)) in gld_interpret_ether() 183 if (MBLKL(mp) < sizeof (struct ether_header)) { in gld_interpret_ether() 195 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether() 264 pktinfo->macLen = sizeof (struct ether_header); in gld_interpret_ether() 279 (sizeof (struct ether_header) + typelen); in gld_interpret_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()
|
/titanic_50/usr/src/uts/sun4v/io/ |
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()
|
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 | vsw_rxdring.c | 720 struct ether_header *ehp; in vsw_receive_packet() 811 ehp = (struct ether_header *)mp->b_rptr; in vsw_receive_packet() 859 struct ether_header *ehp; in vsw_dringsend_shm() 913 ehp = (struct ether_header *)mp->b_rptr; in vsw_dringsend_shm()
|
/titanic_50/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_dlpi.c | 861 struct ether_header *headerp; 900 nmp = allocb(sizeof (struct ether_header) + padding, BPRI_MED); 906 nmp->b_wptr = nmp->b_rptr + sizeof (struct ether_header); 911 headerp = (struct ether_header *)nmp->b_rptr; 1550 struct ether_header *headerp; 1591 (MBLKHEAD(nmp) >= sizeof (struct ether_header)) && 1593 nmp->b_rptr -= sizeof (struct ether_header); 1594 headerp = (struct ether_header *)nmp->b_rptr; 1602 headerp = (struct ether_header *)mp->b_rptr; 1603 mp->b_wptr = mp->b_rptr + sizeof (struct ether_header); [all …]
|
/titanic_50/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 108 struct ether_header *ehp; in mac_fix_cksum() 139 ehp = (struct ether_header *)mp->b_rptr; in mac_fix_cksum() 150 offset = sizeof (struct ether_header); in mac_fix_cksum() 322 struct ether_header *ehp; in mac_add_vlan_tag() 340 ehp = (struct ether_header *)mp->b_rptr; in mac_add_vlan_tag() 347 mp->b_rptr += sizeof (struct ether_header); in mac_add_vlan_tag() 896 struct ether_header *ehp; in mac_pkt_hash() 913 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in mac_pkt_hash() 917 ehp = (struct ether_header *)mp->b_rptr; in mac_pkt_hash() 951 skip_len = sizeof (struct ether_header); in mac_pkt_hash()
|
/titanic_50/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()
|
H A D | bnxe_tx.c | 671 if (msgSize < sizeof(struct ether_header)) in BnxeGetHdrInfo() 677 ASSERT(msgSize >= sizeof(struct ether_header)); in BnxeGetHdrInfo() 700 if (((struct ether_header *)pMblk->b_rptr)->ether_type == in BnxeGetHdrInfo() 710 if (((struct ether_header *)pL2Hdr)->ether_type == htons(ETHERTYPE_VLAN)) in BnxeGetHdrInfo() 719 l2HdrLen = sizeof(struct ether_header); in BnxeGetHdrInfo()
|
/titanic_50/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) + \
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libbc/inc/include/netinet/ |
H A D | if_ether.h | 34 struct ether_header { struct
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | ethernet.h | 58 struct ether_header { struct
|
/titanic_50/usr/src/uts/sun4u/starcat/sys/ |
H A D | dman.h | 46 #define ETHERHEADER_SIZE (sizeof (struct ether_header)) 47 typedef struct ether_header ehdr_t;
|
/titanic_50/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 139 struct ether_header *eh; in myri10ge_lro_rx() 149 eh = (struct ether_header *)(void *)m_head->b_rptr; in myri10ge_lro_rx()
|
/titanic_50/usr/src/uts/common/io/bge/ |
H A D | bge_send.c | 271 buf += sizeof (struct ether_header); in bge_pseudo_cksum() 528 ASSERT(txbuf->copy_len >= sizeof (struct ether_header)); in bge_ring_tx()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 680 struct ether_header *eh; in oce_send_packet() 748 eh = (struct ether_header *)(void *)mp->b_rptr; in oce_send_packet() 759 ip_offset = sizeof (struct ether_header); in oce_send_packet()
|