Thomas Anders wrote:
The problem seems to be that

- init_usm() calls setup_engineid() before reading config files
   resulting in an initial UCD_RND-based engineID
- the "oldEngineID" handler oldengineID_conf() just puts the string
  into the global oldEngineID variable, *not* changing the
  global engineID variable

Calling setup_engineid() again in oldengineID_conf() doesn't help since it has:

    case ENGINEID_TYPE_UCD_RND:        /* UCD specific encoding */
        if (engineID)           /* already setup, keep current value */
            return engineIDLength;

i.e. it doesn't change an existing engineID value.

While I'm thinking that the "oldEngineID" handling qualifies as a bug,
I feel like missing the general idea behind this particular implementation.

Please, can someone (who knows more about the history of this code)
shed some light on this?


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to