Thomas,
Thanks for the path mentioned. But I am unable to login to submit the
patch. I have mentioned below the code changes done in
unregister_mib_context() function in agent/agent_registry.c. Can this
change be considered for the next patch.?
Regards,
Suresh.
Actual Code snippet
====================
997 netsnmp_subtree_free(myptr);
998
999 memset(®_parms, 0x0, sizeof(reg_parms));
1000 reg_parms.name = name;
1001 reg_parms.namelen = len;
1002 reg_parms.priority = priority;
1003 reg_parms.range_subid = range_subid;
1004 reg_parms.range_ubound = range_ubound;
1005 reg_parms.flags = 0x00; /* this is okay I think */
1006 reg_parms.contextName = context;
1007 snmp_call_callbacks(SNMP_CALLBACK_APPLICATION,
1008 SNMPD_CALLBACK_UNREGISTER_OID,
®_parms);
1009
1010 netsnmp_set_lookup_cache_size(old_lookup_cache_val);
1011 invalidate_lookup_cache(context);
1012 return MIB_UNREGISTERED_OK;
After modification
======================
997 /* netsnmp_subtree_free(myptr); */ /* Moving this after
snmp_call_ca
llbacks */
998
999 memset(®_parms, 0x0, sizeof(reg_parms));
1000 reg_parms.name = name;
1001 reg_parms.namelen = len;
1002 reg_parms.priority = priority;
1003 reg_parms.range_subid = range_subid;
1004 reg_parms.range_ubound = range_ubound;
1005 reg_parms.flags = 0x00; /* this is okay I think */
1006 reg_parms.contextName = context;
1007 snmp_call_callbacks(SNMP_CALLBACK_APPLICATION,
1008 SNMPD_CALLBACK_UNREGISTER_OID, ®_parms);
1009
1010 netsnmp_subtree_free(myptr);
1011 netsnmp_set_lookup_cache_size(old_lookup_cache_val);
1012 invalidate_lookup_cache(context);
1013 return MIB_UNREGISTERED_OK;
-----Original Message-----
From: Thomas Anders [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 20, 2005 8:01 PM
To: Pamidipati Suresh-G20238
Cc: [email protected]
Subject: Re: Unregister is not working in NET-SNMP-5.2.2.
Pamidipati Suresh-G20238 wrote:
> Please let us know how can we submit this fix as a patch..?
www.net-snmp.org/patches
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users