>
> SubAgent should follow the following steps for deregistration.
> Please correct me if I am wrong.
>
> 1. de-register the MIB
> unregister_mib(oid, oid_len)
It's probably safe to use 'netsnmp_unregister_handler' for that
(since this handles non-default registrations as well - context,
priority, etc).
> 2. Free the table information (for table helper)
> 3. free the netsnmp_handler_registration structure
> netsnmp_handler_registration_free(netsnmp_handler_registration*)
Yup - that sounds about right.
But I suspect that the 'netsnmp_handler_registration_free' will probably
take care of releasing the table information as well. It certainly
traverses the handler chain, freeing any handler-specific data.
So deregistration should be a matter of:
netsnmp_unregister_handler( reg );
netsnmp_handler_registration_free( reg );
But Suck it and See.
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