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