Hi,

This is about display bug in : net-snmp-5.3.2.pre1

If i define a inetaddresstype and inetaddress fields in a group in a mib,
the RFC says (ftp://ftp.rfc-editor.org/in-notes/rfc4001.txt )
that display pattern must be dependent on the inetaddresstype.
But current code do not take in to consider about this. (Only there is some
support for indexed inetaddresstype and inetaddress).

I checked the code in snmplib/mib.c and found that the hint field is null
for the inetaddress, so it is displaying it as plain octate string in
sprint_realloc_octet_string function.

My proposed change for this is: when we do snmpget on an inetaddresstype, we
need to refer the mib to check weather it is an inetaddress kind, if so,
then we need to send the request for both inetaddresstype field and
inetaddress field.

We must support function pointers insted of hint, which can take a
parameter(may be variable number of args) and return the hint string.

Also we need to support for INET-ADDRESS-MIB completely in all other
operations.

I am happy to involve myself in fixing this bug, if u consider the above
scenario is valid.


Regards,
Raveendra.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to