summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-09-20 08:56:17 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-09-20 08:56:17 +0000
commitac8cc5a944e921b496c2176be5598b782444ec41 (patch)
tree24115a6d89a047586d7171256c7a6539047f5e95 /regress/lib
parent70fde64c165404c4c1825c5a96a9ffac6d85f2b9 (diff)
Return error on GET requests without an instance identifier, both for
tables and scalar values. Fixes system/6468 by not calling table get functions with an unexpectedly short OID. Also fixes system/6071. Scalar variables without an instance specified now returns a noSuchInstance error. GetNext requests correctly returns the .0 instance. This means you can no longer rely on $ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr returning the .0 instance. You need to specify it explicitly: $ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr.0 Also return proper SNMPv2 errors per varbind instead of a noSuchName error status, unless SNMPv1 was specified in the request. An earlier version of this diff tested by Remi Laurent, thanks.
Diffstat (limited to 'regress/lib')
0 files changed, 0 insertions, 0 deletions