CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2010/09/20 02:56:16
Modified files:
usr.sbin/snmpd : mps.c snmpd.h snmpe.c
Log message:
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.