Lines Matching defs:macp
1086 mac_register_t *macp;
1091 if ((macp = mac_alloc(MAC_VERSION)) == NULL)
1093 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
1094 macp->m_driver = vswp;
1095 macp->m_dip = vswp->dip;
1096 macp->m_src_addr = (uint8_t *)&vswp->if_addr;
1097 macp->m_callbacks = &vsw_m_callbacks;
1098 macp->m_min_sdu = 0;
1099 macp->m_max_sdu = vswp->mtu;
1100 macp->m_margin = VLAN_TAGSZ;
1101 rv = mac_register(macp, &vswp->if_mh);
1102 mac_free(macp);