> > We are porting some drivers from Linux to Solaris.
 > >
 > > Within one driver, I need a way to get a list of all configured IP 
 > > interfaces (and their addresses). Basically, a list of "struct ifnet" 
 > > (but I read that this is legacy code?).
 > >
 > > What is the recommended way to get this information?
 > >
 > >   thanks, Joachim
 > >   
 > In user land one should be using libdlpi but there is no new interface 
 > for kernel access. check out  rds_verify_bind_address().

libdlpi gets link information, not IP interface information.  SIOCGLIFCONF
should be used to get IP interface and address information.

-- 
meem
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to