Lines Matching refs:mh
147 struct ether_header *mh; in gld_interpret_ether() local
165 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether()
166 pktinfo->ethertype = REF_NET_USHORT(mh->ether_type); in gld_interpret_ether()
167 pktinfo->isForMe = mac_eq(&mh->ether_dhost, in gld_interpret_ether()
195 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether()
198 if (mac_eq(&mh->ether_dhost, ether_broadcast, macinfo->gldm_addrlen)) in gld_interpret_ether()
200 else if (mh->ether_dhost.ether_addr_octet[0] & 1) in gld_interpret_ether()
203 typelen = REF_NET_USHORT(mh->ether_type); in gld_interpret_ether()
256 mac_copy(&mh->ether_dhost, pktinfo->dhost, macinfo->gldm_addrlen); in gld_interpret_ether()
257 mac_copy(&mh->ether_shost, pktinfo->shost, macinfo->gldm_addrlen); in gld_interpret_ether()
342 struct ether_header *mh; in gld_unitdata_ether() local
411 mh = (struct ether_header *)nmp->b_rptr; in gld_unitdata_ether()
412 mac_copy(dhost, &mh->ether_dhost, macinfo->gldm_addrlen); in gld_unitdata_ether()
419 &mh->ether_shost, macinfo->gldm_addrlen); in gld_unitdata_ether()
483 struct ether_header *mh; in gld_fastpath_ether() local
543 mh = (struct ether_header *)nmp->b_rptr; in gld_fastpath_ether()
544 mac_copy(gldp->glda_addr, &mh->ether_dhost, macinfo->gldm_addrlen); in gld_fastpath_ether()
548 &mh->ether_shost, macinfo->gldm_addrlen); in gld_fastpath_ether()
1024 struct fddi_mac_frm *mh; in gld_interpret_fddi() local
1058 mh = (struct fddi_mac_frm *)mp->b_rptr; in gld_interpret_fddi()
1063 if (mac_eq(mh->fddi_dhost, ether_broadcast, macinfo->gldm_addrlen)) in gld_interpret_fddi()
1065 else if (mh->fddi_dhost[0] & 0x80) in gld_interpret_fddi()
1077 cmac_copy(mh->fddi_dhost, pktinfo->dhost, in gld_interpret_fddi()
1079 cmac_copy(mh->fddi_shost, pktinfo->shost, in gld_interpret_fddi()
1116 if ((mh->fddi_fc & 0x70) == 0x50) { in gld_interpret_fddi()
1147 struct fddi_mac_frm *mh; in gld_unitdata_fddi() local
1204 mh = (struct fddi_mac_frm *)nmp->b_rptr; in gld_unitdata_fddi()
1206 mh->fddi_fc = 0x50; in gld_unitdata_fddi()
1207 cmac_copy(dhost, mh->fddi_dhost, macinfo->gldm_addrlen, macinfo); in gld_unitdata_fddi()
1214 mh->fddi_shost, macinfo->gldm_addrlen, macinfo); in gld_unitdata_fddi()
1226 struct fddi_mac_frm *mh; in gld_fastpath_fddi() local
1265 mh = (struct fddi_mac_frm *)nmp->b_rptr; in gld_fastpath_fddi()
1266 mh->fddi_fc = 0x50; in gld_fastpath_fddi()
1267 cmac_copy(gldp->glda_addr, mh->fddi_dhost, in gld_fastpath_fddi()
1272 mh->fddi_shost, macinfo->gldm_addrlen, macinfo); in gld_fastpath_fddi()
1398 struct tr_mac_frm *mh; in gld_interpret_tr() local
1433 mh = (struct tr_mac_frm *)mp->b_rptr; in gld_interpret_tr()
1436 if (mac_eq(mh->tr_dhost, ether_broadcast, macinfo->gldm_addrlen) || in gld_interpret_tr()
1437 mac_eq(mh->tr_dhost, tokenbroadcastaddr2, macinfo->gldm_addrlen)) in gld_interpret_tr()
1439 else if (mh->tr_dhost[0] & 0x80) in gld_interpret_tr()
1451 mac_copy(mh->tr_dhost, pktinfo->dhost, macinfo->gldm_addrlen); in gld_interpret_tr()
1452 mac_copy(mh->tr_shost, pktinfo->shost, macinfo->gldm_addrlen); in gld_interpret_tr()
1493 mh = (struct tr_mac_frm *)mp->b_rptr; /* to look at RIF */ in gld_interpret_tr()
1496 if (mh->tr_shost[0] & 0x80) { in gld_interpret_tr()
1500 rh = (struct gld_ri *)&mh->tr_ri; in gld_interpret_tr()
1517 if ((mh->tr_fc & 0xc0) == 0x40) { in gld_interpret_tr()
1553 struct tr_mac_frm_nori *mh; in gld_unitdata_tr() local
1657 mh = (struct tr_mac_frm_nori *)nmp->b_rptr; in gld_unitdata_tr()
1658 mh->tr_ac = 0x10; in gld_unitdata_tr()
1659 mh->tr_fc = 0x40; in gld_unitdata_tr()
1660 mac_copy(dhost, mh->tr_dhost, macinfo->gldm_addrlen); in gld_unitdata_tr()
1667 mh->tr_shost, macinfo->gldm_addrlen); in gld_unitdata_tr()
1670 mh->tr_shost[0] |= 0x80; in gld_unitdata_tr()
1672 mh->tr_shost[0] &= ~0x80; in gld_unitdata_tr()
1693 struct tr_mac_frm_nori *mh; in gld_fastpath_tr() local
1751 mh = (struct tr_mac_frm_nori *)nmp->b_rptr; in gld_fastpath_tr()
1752 mh->tr_ac = 0x10; in gld_fastpath_tr()
1753 mh->tr_fc = 0x40; in gld_fastpath_tr()
1754 mac_copy(gldp->glda_addr, mh->tr_dhost, macinfo->gldm_addrlen); in gld_fastpath_tr()
1758 mh->tr_shost, macinfo->gldm_addrlen); in gld_fastpath_tr()
1762 mh->tr_shost[0] |= 0x80; in gld_fastpath_tr()
1764 mh->tr_shost[0] &= ~0x80; in gld_fastpath_tr()