> There is this structure ifnet from which we can access interface
 > statistics.the head of the linked list is contained in a global pointer
 > called ifnet.What i want to know is where is this global pointer
 > initialized.

If you're talking about the 'ifnet' in <net/if.h>, that's just some old
junk from the SunOS 4.x (BSD) days that's not used anymore.  Someone needs
to haul it out, along with a bunch of other cruft in that file (I thought
there was a CR filed for this, but I can't find it at the moment).

For statistics, check out the kstat facility.  The gld(7D) manpage
documents the common ones (yes, it seems like a bug that there isn't
a more general manpage covering them).

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

Reply via email to