Dear All,

In a Net-SNMP version 5.3.1 pass-through executable (either pass or pass_persist), it is only possible to return the errors wrongType(7) or notWritable(17) in response to a set request by writing the string "wrong-type" or "not-writable" respectively.

In version 5.4, I have seen in the source code that this will be extended (currently only for pass_persist).  In addition to the above errors, it will also be possible to return wrongLength(8), wrongValue(10) and inconsistentValue(12) by writing the string "wrong-length", "wrong-value" or "inconsistent-value" respectively.

Firstly, is there any reason to make a difference between the errors that can be returned with pass and pass_persist in version 5.4?

Secondly, is there any special reason why the full range of SNMPv2 error codes cannot be returned?  From what I can see, it is fairly straight-forward to allow other error codes by adding more conditions in the if statements at line 517 of agent/mibgroup/ucd-snmp/pass.c and line 495 of agent/mibgroup/ucd-snmp/pass_persist.c (version 5.4 line numbers) and updating the snmpd.conf man page.  Depending on the answer to the first question, it might be better to move these checks into a common function that could be used by both pass and pass_persist.

Regards,
Anthony
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to