Home
last modified time | relevance | path

Searched refs:ehp (Results 1 – 25 of 37) sorted by relevance

12

/titanic_50/usr/src/uts/common/io/mac/plugins/
H A Dmac_ether.c407 struct ether_header *ehp; in mac_ether_header() local
418 ehp = (void *)mp->b_rptr; in mac_ether_header()
419 bcopy(daddr, &(ehp->ether_dhost), ETHERADDRL); in mac_ether_header()
420 bcopy(saddr, &(ehp->ether_shost), ETHERADDRL); in mac_ether_header()
428 ehp->ether_type = htons(sap); in mac_ether_header()
438 struct ether_header *ehp; in mac_ether_header_info() local
444 ehp = (void *)mp->b_rptr; in mac_ether_header_info()
445 ether_type = ntohs(ehp->ether_type); in mac_ether_header_info()
448 hdr_info->mhi_daddr = (const uint8_t *)&(ehp->ether_dhost); in mac_ether_header_info()
449 hdr_info->mhi_saddr = (const uint8_t *)&(ehp->ether_shost); in mac_ether_header_info()
H A Dmac_wifi.c378 struct ether_header *ehp; in mac_wifi_header_cook() local
384 ehp = (void *)mp->b_rptr; in mac_wifi_header_cook()
385 llmp = mac_wifi_header(&ehp->ether_shost, &ehp->ether_dhost, in mac_wifi_header_cook()
386 ntohs(ehp->ether_type), pdata, NULL, 0); in mac_wifi_header_cook()
/titanic_50/usr/src/uts/sun4v/io/
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() local
474 ehp = (struct ether_header *)bp->b_rptr; in vsw_switch_l2_frame()
475 mp = vsw_get_same_dest_list(ehp, &bp); in vsw_switch_l2_frame()
481 if (ether_cmp(&ehp->ether_dhost, &vswp->if_addr) == 0) { in vsw_switch_l2_frame()
500 fp = vsw_fdbe_find(vswp, &ehp->ether_dhost); in vsw_switch_l2_frame()
529 if (IS_BROADCAST(ehp)) { in vsw_switch_l2_frame()
532 } else if (IS_MULTICAST(ehp)) { in vsw_switch_l2_frame()
604 struct ether_header *ehp; in vsw_switch_l3_frame() local
[all …]
H A Dvsw_rxdring.c720 struct ether_header *ehp; in vsw_receive_packet() local
811 ehp = (struct ether_header *)mp->b_rptr; in vsw_receive_packet()
812 if (IS_BROADCAST(ehp)) in vsw_receive_packet()
814 else if (IS_MULTICAST(ehp)) in vsw_receive_packet()
859 struct ether_header *ehp; in vsw_dringsend_shm() local
913 ehp = (struct ether_header *)mp->b_rptr; in vsw_dringsend_shm()
914 is_bcast = IS_BROADCAST(ehp); in vsw_dringsend_shm()
915 is_mcast = IS_MULTICAST(ehp); in vsw_dringsend_shm()
H A Dvnet_rxdring.c581 struct ether_header *ehp; in vgen_dringsend_shm() local
619 ehp = (struct ether_header *)mp->b_rptr; in vgen_dringsend_shm()
620 is_bcast = IS_BROADCAST(ehp); in vgen_dringsend_shm()
621 is_mcast = IS_MULTICAST(ehp); in vgen_dringsend_shm()
1054 struct ether_header *ehp; in vgen_receive_packet() local
1150 ehp = (struct ether_header *)mp->b_rptr; in vgen_receive_packet()
1151 if (IS_BROADCAST(ehp)) in vgen_receive_packet()
1153 else if (IS_MULTICAST(ehp)) in vgen_receive_packet()
H A Dvsw_txdring.c796 struct ether_header *ehp = (struct ether_header *)mp->b_rptr; in vsw_dringsend() local
861 if (IS_BROADCAST(ehp)) in vsw_dringsend()
863 else if (IS_MULTICAST(ehp)) in vsw_dringsend()
1041 struct ether_header *ehp; in vsw_process_dringdata() local
1246 ehp = (struct ether_header *)mp->b_rptr; in vsw_process_dringdata()
1247 if (IS_BROADCAST(ehp)) in vsw_process_dringdata()
1249 else if (IS_MULTICAST(ehp)) in vsw_process_dringdata()
H A Dvnet_txdring.c597 struct ether_header *ehp; in vgen_dringsend() local
633 ehp = (struct ether_header *)mp->b_rptr; in vgen_dringsend()
634 is_bcast = IS_BROADCAST(ehp); in vgen_dringsend()
635 is_mcast = IS_MULTICAST(ehp); in vgen_dringsend()
982 struct ether_header *ehp; in vgen_process_dringdata() local
1197 ehp = (struct ether_header *)mp->b_rptr; in vgen_process_dringdata()
1198 if (IS_BROADCAST(ehp)) in vgen_process_dringdata()
1200 else if (IS_MULTICAST(ehp)) in vgen_process_dringdata()
H A Dvsw_phys.c1203 struct ether_header *ehp; in vsw_publish_macaddr() local
1214 ehp = (struct ether_header *)mp->b_rptr; in vsw_publish_macaddr()
1215 bcopy(&etherbroadcastaddr, &ehp->ether_dhost, ETHERADDRL); in vsw_publish_macaddr()
1216 bcopy(&portp->p_macaddr, &ehp->ether_shost, ETHERADDRL); in vsw_publish_macaddr()
1217 ehp->ether_type = htons(ETHERTYPE_REVARP); in vsw_publish_macaddr()
H A Dvnet.c796 struct ether_header *ehp; in vnet_tx_ring_send() local
823 ehp = (struct ether_header *)mp->b_rptr; in vnet_tx_ring_send()
824 vresp = vnet_fdbe_find(vnetp, &ehp->ether_dhost); in vnet_tx_ring_send()
845 is_unicast = !(IS_BROADCAST(ehp) || in vnet_tx_ring_send()
846 (IS_MULTICAST(ehp))); in vnet_tx_ring_send()
892 ehp->ether_type != htons(ETHERTYPE_VLAN)) { in vnet_tx_ring_send()
/titanic_50/usr/src/uts/sun4u/starfire/io/
H A Didn_dlpi.c250 #define IS_BROADCAST(ehp) \ argument
251 (ether_cmp(&(ehp)->ether_dhost, &etherbroadcastaddr) == 0)
252 #define IS_MULTICAST(ehp) \ argument
253 IDNDL_ADDR_IS_MULTICAST(&(ehp)->ether_dhost)
254 #define BUMP_InNUcast(sip, ehp) \ argument
255 if (IS_BROADCAST(ehp)) { \
257 } else if (IS_MULTICAST(ehp)) { \
260 #define BUMP_OutNUcast(sip, ehp) \ argument
261 if (IS_BROADCAST(ehp)) { \
263 } else if (IS_MULTICAST(ehp)) { \
[all …]
/titanic_50/usr/src/uts/common/io/mac/
H A Dmac_util.c108 struct ether_header *ehp; in mac_fix_cksum() local
139 ehp = (struct ether_header *)mp->b_rptr; in mac_fix_cksum()
140 if (ntohs(ehp->ether_type) == VLAN_TPID) { in mac_fix_cksum()
149 sap = ntohs(ehp->ether_type); in mac_fix_cksum()
322 struct ether_header *ehp; in mac_add_vlan_tag() local
340 ehp = (struct ether_header *)mp->b_rptr; in mac_add_vlan_tag()
342 bcopy(ehp, evhp, (ETHERADDRL * 2)); in mac_add_vlan_tag()
343 evhp->ether_type = ehp->ether_type; in mac_add_vlan_tag()
896 struct ether_header *ehp; in mac_pkt_hash() local
917 ehp = (struct ether_header *)mp->b_rptr; in mac_pkt_hash()
[all …]
H A Dmac_sched.c1492 struct ether_header *ehp; in mac_rx_srs_proto_fanout() local
1562 ehp = (struct ether_header *)mp->b_rptr; in mac_rx_srs_proto_fanout()
1567 if ((sap = ntohs(ehp->ether_type)) == VLAN_TPID) { in mac_rx_srs_proto_fanout()
1584 ((((uint8_t *)&ehp->ether_dhost)[0] & 0x01) == 0); in mac_rx_srs_proto_fanout()
1585 dstaddr = (uint8_t *)&ehp->ether_dhost; in mac_rx_srs_proto_fanout()
1896 struct ether_header *ehp; in mac_rx_srs_fanout() local
1981 ehp = (struct ether_header *)mp->b_rptr; in mac_rx_srs_fanout()
1986 if ((sap = ntohs(ehp->ether_type)) == VLAN_TPID) { in mac_rx_srs_fanout()
2003 ((((uint8_t *)&ehp->ether_dhost)[0] & 0x01) == 0); in mac_rx_srs_fanout()
2004 dstaddr = (uint8_t *)&ehp->ether_dhost; in mac_rx_srs_fanout()
/titanic_50/usr/src/uts/common/io/aggr/
H A Daggr_recv.c85 struct ether_header *ehp; in aggr_recv_cb() local
117 ehp = (struct ether_header *)cmp->b_rptr; in aggr_recv_cb()
119 sap = ntohs(ehp->ether_type); in aggr_recv_cb()
/titanic_50/usr/src/uts/sun4v/sys/
H A Dvnet.h47 #define IS_BROADCAST(ehp) \ argument
48 (ether_cmp(&ehp->ether_dhost, &etherbroadcastaddr) == 0)
49 #define IS_MULTICAST(ehp) \ argument
50 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
H A Dvsw_ldc.h480 #define IS_BROADCAST(ehp) \ argument
481 (bcmp(&ehp->ether_dhost, &etherbroadcastaddr, ETHERADDRL) == 0)
482 #define IS_MULTICAST(ehp) \ argument
483 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
H A Dvnet_gen.h105 #define IS_BROADCAST(ehp) \ argument
106 (ether_cmp(&ehp->ether_dhost, &etherbroadcastaddr) == 0)
107 #define IS_MULTICAST(ehp) \ argument
108 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
/titanic_50/usr/src/uts/common/io/rge/
H A Drge_rxtx.c178 struct ether_vlan_header *ehp; in rge_receive_packet() local
277 ehp = (struct ether_vlan_header *)mp->b_rptr; in rge_receive_packet()
278 ehp->ether_tpid = htons(ETHERTYPE_VLAN); in rge_receive_packet()
279 ehp->ether_tci = htons(vtag); in rge_receive_packet()
613 struct ether_vlan_header *ehp; in rge_send() local
633 ehp = (struct ether_vlan_header *)mp->b_rptr; in rge_send()
634 if (ehp->ether_tpid == htons(ETHERTYPE_VLAN)) in rge_send()
635 tci = ntohs(ehp->ether_tci); in rge_send()
/titanic_50/usr/src/uts/common/io/bge/
H A Dbge_recv2.c206 struct ether_vlan_header *ehp; in bge_receive_packet() local
209 ehp = (void *)dp; in bge_receive_packet()
210 ehp->ether_tpid = ntohs(ETHERTYPE_VLAN); in bge_receive_packet()
211 ehp->ether_tci = ntohs(hw_rbd.vlan_tci); in bge_receive_packet()
H A Dbge_send.c496 struct ether_vlan_header *ehp; in bge_ring_tx() local
531 ehp = (void *)pbuf; in bge_ring_tx()
532 if (ehp->ether_tpid == htons(ETHERTYPE_VLAN)) { in bge_ring_tx()
534 vlan_tci = ntohs(ehp->ether_tci); in bge_ring_tx()
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_rx.c461 struct ether_vlan_header *ehp; in oce_rx_insert_tag() local
466 ehp = (struct ether_vlan_header *)voidptr(mp->b_rptr); in oce_rx_insert_tag()
467 ehp->ether_tpid = htons(ETHERTYPE_VLAN); in oce_rx_insert_tag()
468 ehp->ether_tci = LE_16(vtag); in oce_rx_insert_tag()
/titanic_50/usr/src/cmd/mdb/sparc/mdb/
H A Dproc_isadep.c635 pt_disasm(const GElf_Ehdr *ehp) in pt_disasm() argument
646 if (ehp != NULL && ehp->e_machine == EM_SPARC32PLUS) { in pt_disasm()
647 if (ehp->e_flags & (EF_SPARC_SUN_US1 | EF_SPARC_SUN_US3)) in pt_disasm()
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dagent.c382 drain_script(iu_eh_t *ehp, void *arg) in drain_script() argument
412 accept_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in accept_event() argument
442 ipc_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in ipc_event() argument
1361 rtsock_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in rtsock_event() argument
H A Dscript_handler.c250 script_exit(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in script_exit() argument
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c714 mdb_gelf_check(mdb_io_t *io, Elf32_Ehdr *ehp, GElf_Half etype) in mdb_gelf_check() argument
724 nbytes = IOP_READ(io, ehp, sizeof (Elf32_Ehdr)); in mdb_gelf_check()
733 bcmp(&ehp->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) { in mdb_gelf_check()
739 if (ehp->e_ident[EI_DATA] != order) { in mdb_gelf_check()
745 if (ehp->e_version != EV_CURRENT) { in mdb_gelf_check()
748 (ulong_t)ehp->e_version, EV_CURRENT); in mdb_gelf_check()
752 if (etype != ET_NONE && ehp->e_type != etype) { in mdb_gelf_check()
/titanic_50/usr/src/uts/common/xen/io/
H A Dxnf.c1371 struct ether_header *ehp; in xnf_pseudo_cksum() local
1378 ASSERT(length >= sizeof (*ehp)); in xnf_pseudo_cksum()
1379 ehp = (struct ether_header *)buf; in xnf_pseudo_cksum()
1381 if (ntohs(ehp->ether_type) == VLAN_TPID) { in xnf_pseudo_cksum()
1389 sap = ntohs(ehp->ether_type); in xnf_pseudo_cksum()
1390 offset = sizeof (*ehp); in xnf_pseudo_cksum()

12