I think I've tracked down the source of the problem.

One of the changes I made was to introduce a couple
of fixed views - "_all_" and "_none_", rather than
defining a separate (anonymous) view for each
unrestricted access setting.  These are set up
as part of the the vacm_conf initialisation.

Unfortunately, the trapd initialisation doesn't
call the main initialisation routine - instead it
just calls one of the sub-routines, so that this
"_all_" view never gets created.


There's a simple temporary workaround. In the
routine vacm_create_simple(), look for the code

        strcpy( viewname, "_all_" );
        view_ptr = NULL;

and comment these two lines out.  That will revert
to the previous behaviour of separate views, which
works OK.

A better fix is probably to move the definition of
these standard views into the main SNMP library.
I've got a patch that should work, but I need to do
a bit more testing first.  That should be ready for
tomorrow, but the hack above should serve for the
time being.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to