[illumos-Developer] How to enumerate network interfaces?

Garrett D'Amore garrett at damore.org
Thu Oct 21 14:11:10 PDT 2010


On Thu, 2010-10-21 at 12:04 -0700, Sunay Tripathi wrote:
> 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?

I don't see why not, if the interfaces are intended for public
consumption.  Or, you could set up a workspace to integrate it yourself.
The beauty of illumos is, anyone can gain integration privileges if
they're willing to do the work to integrate themselves. ;-)

	- Garrett

> 
> 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
> 
> 
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer





More information about the Developer mailing list