Dave> It's probably safe to use 'netsnmp_unregister_handler' for that
Mahesh> I could not find the netsnmp_unregister_handler() API in
Mahesh> NET-SNMP-5.1.1.
My apologies - it's an addition since that release.
It's certainly in the upcoming 5.1.2 release.
Perhaps try with the 5.1.2.pre2 tarball.
The full definition of this routine is simply:
int
netsnmp_unregister_handler(netsnmp_handler_registration *reginfo)
{
return unregister_mib_context(reginfo->rootoid, reginfo->rootoid_len,
reginfo->priority,
reginfo->range_subid, reginfo->range_ubound,
reginfo->contextName);
}
Mahesh> I went though the code of netsnmp_handler_registration_free() API.
Mahesh> This API does not free the table information.
Not explicitly, no.
But the netsnmp_table_registration_info structure is attached to the
handler structure (see netsnmp_get_table_handler: ret->myvoid=tabreq)
So when the table handler is freed, the accompanying table structure
should be freed as well. That's certainly how I understand this is
meant to work.
Wes? Anything to add?
Dave
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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