>...'holier than thou' attitude...complaints and attacks... hostile and
aggressive...attacks and complaints. Is that the type of contribution
you wish to make to this potential new feature?
I apologize. We seem to have gotten off on the wrong foot, 'cause I
made a bunch of assumptions.
On Solaris, the duplex setting for the network interfaces available to
me is discoverable using the following API's
ce - kstat
module: ce instance: 0
name: ce0 class: net
link_duplex 2
e1000g - kstat
module: e1000g instance: 0
name: mac class: net
link_duplex 2
hme - kstat
module: hme instance: 0
name: hme0 class: net
link_duplex 2
net-snmp's API for the kstat interface are found in
agent/mibgroup/kernel_sunos5.h.
We need to do an init-kernel_sunos5, then a getKstatInt. (I think, but I
found some code that says it's a ui32 so we may need to use getKstat
instead)
int getKstatInt(const char *classname,
const char *statname, const char
*varname,
int *value);
Most of the work appears to have been done for us in kernel_sunos5.c but
it looks like it needs updating for the new drivers. It appears also
that the code uses the deprecated ifreq structure. Apparently we're
supposed to be using lifreq instead. Need to have a look at that. It's
defined in /usr/include/net/if.h. This, however, doesn't directly give
us link_duplex, at least not yet. For that you need to go to
/usr/include/sys and grep for link_status. Then you can see where it's
set for the individual drivers. The question is, how do you get from
there back to [l]ifreq?
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users