[illumos-Developer] How to enumerate network interfaces?

Alex alexander.r.eremin at gmail.com
Thu Oct 21 10:02:41 PDT 2010


Hi, Peter.

> Folks,

> I need to get a list of aggregated as well as non-aggregated network interfaces
> similar to what "dladm show-link" does. I traced the code down to 
> dladm_walk_datalink_id() in libdladm. However, there is no libdladm.so available
> in the build image. 


> Is there a public method I can use to obtain the information I am looking for?

> Oddly, libdladm.h is available in the build image.

> Thank you in advance for your help.

> Regards,
> Peter


>       

You can use kstat for this, for example.

-- 
Thanks,
Alex




More information about the Developer mailing list