Joachim Worringen wrote:

>Greetings,
>
>I need to get the addresses and network masks of all IP interfaces from 
>within my driver (thus, within the kernel). This principally works with 
>the code shown below.
>  
>

If you look in <sys/neti.h>, you'll find these:

extern int net_getlifaddr(net_data_t, phy_if_t, lif_if_t, int, 
net_ifaddr_t [], void *);
extern phy_if_t net_phygetnext(net_data_t, phy_if_t);
extern lif_if_t net_lifgetnext(net_data_t, phy_if_t, lif_if_t);

...and they should delivery everything you need.

Right now, to get yourself up and running, you'll have to read
the source to get the low down on how these guys work but
we are in the process of fixing that.

Darren

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to