Lines Matching defs:mhip
7757 ip_dlur_to_mhi(ill_t *ill, mblk_t *mb, struct mac_header_info_s *mhip)
7763 bzero(mhip, sizeof (struct mac_header_info_s));
7765 mhip->mhi_dsttype = MAC_ADDRTYPE_UNICAST;
7772 mhip->mhi_daddr = (uchar_t *)ind + ind->dl_dest_addr_offset +
7774 mhip->mhi_saddr = (uchar_t *)ind + ind->dl_src_addr_offset +
7781 mhip->mhi_dsttype = MAC_ADDRTYPE_MULTICAST;
7793 if (bcmp(mhip->mhi_daddr, bphys_addr,
7795 mhip->mhi_dsttype = MAC_ADDRTYPE_BROADCAST;
7815 ip_mdata_to_mhi(ill_t *ill, mblk_t *mp, struct mac_header_info_s *mhip)
7820 bzero(mhip, sizeof (struct mac_header_info_s));
7822 mhip->mhi_dsttype = MAC_ADDRTYPE_UNICAST;
7851 mhip->mhi_daddr = (uchar_t *)&pether->ether_dhost;
7852 mhip->mhi_saddr = (uchar_t *)&pether->ether_shost;
7854 if (!(mhip->mhi_daddr[0] & 0x01))
7858 mhip->mhi_dsttype = MAC_ADDRTYPE_MULTICAST;
7877 if (bcmp(mhip->mhi_daddr, bphys_addr, addrlen) == 0)
7878 mhip->mhi_dsttype = MAC_ADDRTYPE_BROADCAST;