[illumos-Developer] How to enumerate network interfaces?

Sunay Tripathi tripathi.sunay at gmail.com
Thu Oct 21 12:04:15 PDT 2010


Walking the code is the best documentation there is :) libdladm.so
is available in /lib and meant to be a public interface.

Cheers,
Sunay

As an aside,libipadm and associated header files (libipadm.h)
was also meant to be public at some point but I noticed the header file
is not  being delivered. Garrett, can you deliver libipadm.h in
one of the future builds?

On 10/21/10 09:30 AM, Peter Tap wrote:
> 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
>
>
>
>
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer




More information about the Developer mailing list