This directory contains patches to CMU SNMP 2.1.2 source code for Solaris 2.x support.

Summary of changes:
------------------

1. New kernel instrumentation has been implemented. It is in kernel_sunos5.[ch].
It uses undocumented SOlaris interface to mib2 statistics via streams interface.

2. snmp_vars.c contains SunOS 5.x versions for all var_ functions which became
more regular because kernel interface has been changed.

3. Minor cosmetic changes in various routines to get rid of warnings from
Spro C compiler.

How to apply.
------------

1. Cd to top-level CMU snmp source directory.

2. 	patch -p0 -d . <solaris.patch

3. 	cp kernel_sunos5.[ch] agent

4.	make

5.	Enjoy.


Testing
-------

This stuff has been tested in read-only mode. SET request won't work for
ip group but it may work for routing table.

TODO
----

1. The code needs to be protoized.

2. snmp_vars.c may be even more simplified by moving all if (exact)..else
logic into a separate function.

3. If we add sorting to MIB cacheing it will significantly accelerate
large table lookups (i.e, TCP connections).

4. var_ interface needs to be changed in order not to return pointers
to static variables.

5. Write capability needs to be added to getMibstat.


			Yuri Rabover
			System Management Arts

			yuri@smarts.com
			914-948-6200
