/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ether.c | 432 struct ether_header *ehp; in mac_ether_header() local 443 ehp = (void *)mp->b_rptr; in mac_ether_header() 444 bcopy(daddr, &(ehp->ether_dhost), ETHERADDRL); in mac_ether_header() 445 bcopy(saddr, &(ehp->ether_shost), ETHERADDRL); in mac_ether_header() 453 ehp->ether_type = htons(sap); in mac_ether_header() 463 struct ether_header *ehp; in mac_ether_header_info() local 469 ehp = (void *)mp->b_rptr; in mac_ether_header_info() 470 ether_type = ntohs(ehp->ether_type); in mac_ether_header_info() 473 hdr_info->mhi_daddr = (const uint8_t *)&(ehp->ether_dhost); in mac_ether_header_info() 474 hdr_info->mhi_saddr = (const uint8_t *)&(ehp->ether_shost); in mac_ether_header_info()
|
H A D | mac_wifi.c | 378 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()
|
/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() 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 D | vsw_rxdring.c | 720 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 D | vnet_rxdring.c | 581 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 D | vsw_txdring.c | 796 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 D | vnet_txdring.c | 597 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 D | vsw_phys.c | 1203 struct ether_header *ehp; in vsw_publish_macaddr() local 1214 ehp = (struct ether_header *)mp->b_rptr; in vsw_publish_macaddr() 1215 bcopy(ðerbroadcastaddr, &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 D | vnet.c | 797 struct ether_header *ehp; in vnet_tx_ring_send() local 824 ehp = (struct ether_header *)mp->b_rptr; in vnet_tx_ring_send() 825 vresp = vnet_fdbe_find(vnetp, &ehp->ether_dhost); in vnet_tx_ring_send() 846 is_unicast = !(IS_BROADCAST(ehp) || in vnet_tx_ring_send() 847 (IS_MULTICAST(ehp))); in vnet_tx_ring_send() 893 ehp->ether_type != htons(ETHERTYPE_VLAN)) { in vnet_tx_ring_send()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 150 struct ether_header *ehp; in inet_pkt_hash() local 170 ehp = (struct ether_header *)mp->b_rptr; in inet_pkt_hash() 173 uchar_t *mac_src = ehp->ether_shost.ether_addr_octet; in inet_pkt_hash() 174 uchar_t *mac_dst = ehp->ether_dhost.ether_addr_octet; in inet_pkt_hash() 184 sap = ntohs(ehp->ether_type); in inet_pkt_hash()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_recv.c | 87 struct ether_header *ehp; in aggr_recv_path_cb() local 119 ehp = (struct ether_header *)cmp->b_rptr; in aggr_recv_path_cb() 121 sap = ntohs(ehp->ether_type); in aggr_recv_path_cb()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vnet.h | 47 #define IS_BROADCAST(ehp) \ argument 48 (ether_cmp(&ehp->ether_dhost, ðerbroadcastaddr) == 0) 49 #define IS_MULTICAST(ehp) \ argument 50 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
|
H A D | vsw_ldc.h | 480 #define IS_BROADCAST(ehp) \ argument 481 (bcmp(&ehp->ether_dhost, ðerbroadcastaddr, ETHERADDRL) == 0) 482 #define IS_MULTICAST(ehp) \ argument 483 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
|
H A D | vnet_gen.h | 105 #define IS_BROADCAST(ehp) \ argument 106 (ether_cmp(&ehp->ether_dhost, ðerbroadcastaddr) == 0) 107 #define IS_MULTICAST(ehp) \ argument 108 ((ehp->ether_dhost.ether_addr_octet[0] & 01) == 1)
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_rxtx.c | 178 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()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 378 struct ether_header *ehp; in mac_sw_cksum() local 398 ehp = (struct ether_header *)mp->b_rptr; in mac_sw_cksum() 399 if (ntohs(ehp->ether_type) == VLAN_TPID) { in mac_sw_cksum() 406 etype = ntohs(ehp->ether_type); in mac_sw_cksum() 1331 struct ether_header *ehp; in mac_hw_emul() local 1349 ehp = (struct ether_header *)mp->b_rptr; in mac_hw_emul() 1350 if (ntohs(ehp->ether_type) == VLAN_TPID) in mac_hw_emul() 1439 struct ether_header *ehp; in mac_add_vlan_tag() local 1456 ehp = (struct ether_header *)mp->b_rptr; in mac_add_vlan_tag() 1458 bcopy(ehp, evhp, (ETHERADDRL * 2)); in mac_add_vlan_tag() [all …]
|
H A D | mac_sched.c | 1485 struct ether_header *ehp; in mac_rx_srs_proto_fanout() local 1556 ehp = (struct ether_header *)mp->b_rptr; in mac_rx_srs_proto_fanout() 1561 if ((sap = ntohs(ehp->ether_type)) == VLAN_TPID) { in mac_rx_srs_proto_fanout() 1583 ((((uint8_t *)&ehp->ether_dhost)[0] & 0x01) == 0); in mac_rx_srs_proto_fanout() 1584 dstaddr = (uint8_t *)&ehp->ether_dhost; in mac_rx_srs_proto_fanout() 1897 struct ether_header *ehp; in mac_rx_srs_fanout() local 1983 ehp = (struct ether_header *)mp->b_rptr; in mac_rx_srs_fanout() 1988 if ((sap = ntohs(ehp->ether_type)) == VLAN_TPID) { in mac_rx_srs_fanout() 2010 ((((uint8_t *)&ehp->ether_dhost)[0] & 0x01) == 0); in mac_rx_srs_fanout() 2011 dstaddr = (uint8_t *)&ehp->ether_dhost; in mac_rx_srs_fanout()
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_recv2.c | 206 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 D | bge_send.c | 497 struct ether_vlan_header *ehp; in bge_ring_tx() local 532 ehp = (void *)pbuf; in bge_ring_tx() 533 if (ehp->ether_tpid == htons(ETHERTYPE_VLAN)) { in bge_ring_tx() 535 vlan_tci = ntohs(ehp->ether_tci); in bge_ring_tx()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_rx.c | 461 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()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | agent.c | 389 drain_script(iu_eh_t *ehp, void *arg) in drain_script() argument 419 accept_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in accept_event() argument 449 ipc_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in ipc_event() argument 1502 rtsock_event(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in rtsock_event() argument
|
H A D | script_handler.c | 250 script_exit(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) in script_exit() argument
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 714 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()
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xnf.c | 1560 struct ether_header *ehp; in xnf_pseudo_cksum() local 1572 ASSERT3U(len, >=, sizeof (*ehp)); in xnf_pseudo_cksum() 1574 ehp = (struct ether_header *)ptr; in xnf_pseudo_cksum() 1576 if (ntohs(ehp->ether_type) == VLAN_TPID) { in xnf_pseudo_cksum() 1584 sap = ntohs(ehp->ether_type); in xnf_pseudo_cksum() 1585 ptr += sizeof (*ehp); in xnf_pseudo_cksum() 1586 len -= sizeof (*ehp); in xnf_pseudo_cksum()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | gldutil.c | 431 struct ether_header *ehp; in gld_insert_vtag_ether() local 453 ehp = (struct ether_header *)mp->b_rptr; in gld_insert_vtag_ether() 454 mac_copy(&ehp->ether_dhost, &evhp->ether_dhost, ETHERADDRL); in gld_insert_vtag_ether() 455 mac_copy(&ehp->ether_shost, &evhp->ether_shost, ETHERADDRL); in gld_insert_vtag_ether() 456 bcopy(&ehp->ether_type, &evhp->ether_type, sizeof (uint16_t)); in gld_insert_vtag_ether()
|