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

12

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

Completed in 302 milliseconds

12