freebsd-dev/usr.sbin/bsnmpd
Shteryana Shopova f02a1e5794 Do not add 'default:' cases inside a switch() on an enum like the
SNMP option argument. That way the compiler will give a warning in
case of a missing or an extra but unknown 'case:'.
Do the same for SNMP LEAF objects to be prepared once gensnmptree will
auto-generate enums for those too.
Add an abort() after the switch() instead of the 'default:' to catch
any errors. The nice side effect is that the compiler will correctly
track supposed to be 'uninitialized' variables with that.

When trying to set a value sanity check it before calling the OS
dependent API of snmp_bridge to tell whether it is an attempt to
set a bad value or a general error.

Suggested by:	harti (first part)
Approved by:	bz (mentor)
2006-12-15 20:01:57 +00:00
..
bsnmpd Make the generated oid.h dependend on the Makefile. The Makefile defines 2006-11-08 10:36:57 +00:00
gensnmptree Catch up with the import of bsnmp-1.11. Add a couple of new 2005-10-04 15:03:39 +00:00
modules Do not add 'default:' cases inside a switch() on an enum like the 2006-12-15 20:01:57 +00:00
Makefile Finish repo-copy of lib/libbsnmp/modules to usr.sbin/bsnmpd/modules. 2005-03-14 17:32:16 +00:00
Makefile.inc