HP-UX problem: error accessing ip.ipRoutingDiscards.0

This is a discussion on HP-UX problem: error accessing ip.ipRoutingDiscards.0 within the SNMP Coders forums, part of the Networking and Network Related category; Hello all, although I already opened a bug report for that topic I post it to this list with the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2005
Johannes Schmidt-Fischer
 
Posts: n/a
Default HP-UX problem: error accessing ip.ipRoutingDiscards.0

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:jsf@InterFace-AG.de


-------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0