Hello all, although I already opened a bug report for that topic I post it to this list with the hope that someone from HP' Unix division or someone with good knowledge in HP-UX internals might read this and is willing to post an answer (thanks for that in advance!). The bug report's id is 1308397.
The net-snmp daemon uses the function get_mib_info() in HP-UX 10.20, 11.0 and 11i for retrieving mibII values from the system. There is an include file (sys/mib.h) which contains defines for all mibII values that can be retrieved using get_mib_info() - at least I thought it is that way. Unfortunately one of these defines doesn't work: ID_ipRoutingDiscards, which has been introduced with HP-UX 11.0 (it doesn't exist yet in HP-UX 10.20). But when calling get_mib_info() with that define the result is (-1) and errno is set to 22 (EINVAL) - there is no man page for the function but I presume that it means that the given define is invalid... My suspect is that there is some error in the libnm library source code with respect to the newly introduced define. In the include file sys/mib.h there is another line just below the line that contains the ID_ipRoutingDiscards define which contains a define for the maximum possible value in the ip group (MIB_ipMAXCTR). And this define is smaller (19) that the valued used for defining ID_ipRoutingDiscards (23). From the comment connected with the MAXCTR define I presume that it is used in another include file "ip_nm.h" which is not a standard system include file but (probably) an include file that belongs to the libnm source code. In using "truss" (really: tusc) I found out that there are one call to putmsg() and two calls to getmsg() (the device is /dev/ip) for other defines (e.g. ID_ipFragCreates) but there is no call at all for the define ID_ipRoutingDiscards (from that I presume that the libnm library already states that this define is invalid and it therefore returns (-1) and sets errno to 22). Well.. if someone has any additional information to that problem (it might be that there is a patch available from HP which fixes that problem - I already searched for something like that but without success) then please let us know. Thanks! Johannes -- Johannes Schmidt-Fischer InterFace AG phone +49 (0)89 / 610 49 - 207 Leipziger Str. 16 fax +49 (0)89 / 610 49 - 85 D-82008 Unterhaching mobile +49 (0)171/ 787 76 01 http://www.InterFace-AG.com mailto:[EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
