Cathy Zhou wrote:
> Dan Groves wrote:
>> 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.
>>
> First, I'd suggest to use another name other than linkid2name. Second, 
> I'd suggest to make class, and flags (temp or persistent) to be clear in 
> the argument list, as they are arguments of create_linkid() function 
> anyway.
> 

OK, I've changed the name of linkid2name and name2linkid to linkid2info 
and name2info, respectively.  I also added new out arguments.  I posted 
a new copy of the document to the OpenSolaris page.

thanks,

Dan

Reply via email to