Home
last modified time | relevance | path

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

1234

/titanic_50/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.c128 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 Dethernet.c62 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 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.c407 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 Daggr_recv.c85 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 Daggr_lacp.c107 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 Dllc1.c1318 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 Dgldutil.c100 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 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()
/titanic_50/usr/src/uts/sun4v/io/
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()
H A Dvsw_switching.c102 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 Dvsw_rxdring.c720 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 Didn_dlpi.c861 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 Dmac_util.c108 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 Dbnxe_rr.c72 etype = ntohs(((struct ether_header *)pHdr)->ether_type); in BnxeRouteTxRing()
81 eHdrSize = sizeof(struct ether_header); in BnxeRouteTxRing()
H A Dbnxe_tx.c671 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 Dfcoe.h186 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 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()
/titanic_50/usr/src/lib/libbc/inc/include/netinet/
H A Dif_ether.h34 struct ether_header { struct
/titanic_50/usr/src/uts/common/sys/
H A Dethernet.h58 struct ether_header { struct
/titanic_50/usr/src/uts/sun4u/starcat/sys/
H A Ddman.h46 #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 Dmyri10ge_lro.c139 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 Dbge_send.c271 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 Doce_tx.c680 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()

1234