Cathy Zhou wrote:
>>> 3. How to get the link name, link class from one specific dladm_conf_t?
>>>
>>
>> I'll add an example in the examples section.
>>
> After think it more, I'd suggest to have anther function to get those 
> information. Because if the link is strictly temporary, 
> dladm_read_conf() for this link should fail, and I'd expect there is 
> still a way to get such information for temporary links.
> 
> Thanks
> - Cathy
> 
> 
> 
> _________________________________
> clearview-discuss mailing list
> clearview-discuss at opensolaris.org

Right, dladm_read_conf for a temporary link should fail.  Storing 
temporary configuration information is the job of caller.  However, 
since this information is used when we create a link ID to name mapping, 
how would adding an extra argument to the linkid2name and name2linkid 
functions sound?

For example:

linkid2name(id, name, extra)

Where extra is a pointer to a structure that holds extra data about the 
link, such as class.

thoughts?
Dan



Reply via email to