> Cathy Zhou wrote: >> It is symmetrical with dls_create() which also take mac_handle_t as >> the input. > > But in that case, a MAC handle is required in order for dls to make > the initial association of the given linkid with a MAC handle. In the > case of dls_destroy(), the MAC handle is not technically required, as > it is only used to derive a link id, which could have been passed in > as a parameter instead. I just remembered that there is another reason whcy dls_destroy() takes mac_handle_t instead of linkid as the input argument. Note that in some cases, (e.g., diskless netinstall), dlmgmtd starts after dls_create() is called, so the link is created without assigning a linkid. To destroy these links, mac_handle_t can be used to identify the links.
- Cathy
