Lines Matching refs:hdr_info
411 mac_ether_header_info(mblk_t *mp, void *mac_pdata, mac_header_info_t *hdr_info)
422 hdr_info->mhi_hdrsize = sizeof (struct ether_header);
423 hdr_info->mhi_daddr = (const uint8_t *)&(ehp->ether_dhost);
424 hdr_info->mhi_saddr = (const uint8_t *)&(ehp->ether_shost);
425 hdr_info->mhi_origsap = ether_type;
426 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ?
428 hdr_info->mhi_pktsize = (hdr_info->mhi_bindsap == DLS_SAP_LLC) ?
429 hdr_info->mhi_hdrsize + ether_type : 0;
431 if (mac_ether_unicst_verify(hdr_info->mhi_daddr, NULL) == 0)
432 hdr_info->mhi_dsttype = MAC_ADDRTYPE_UNICAST;
433 else if (mac_ether_multicst_verify(hdr_info->mhi_daddr, NULL) == 0)
434 hdr_info->mhi_dsttype = MAC_ADDRTYPE_MULTICAST;
436 hdr_info->mhi_dsttype = MAC_ADDRTYPE_BROADCAST;