how to inject global handler that handles request to any OID?

STOTTS Timothy <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <6E13A53B51111A48A6299DFACA193D4A940E8E@041-DB3MPN1-016.041d.mgd.msft.net>
How can I do the following?

1. create a handler registration for the top OID of:
const oid top_oid[] = { 1 };
const size_t top_oid_len = OID_LENGTH(top_oid);

2. inject the handler such that any GET, SET, GETBULK (any USM authenticated access at all) of any node under the subtree of the top OID will call a function I specify

3. the handler function will have access to a value in memory that represents the IP address of the SNMP manager that is calling this SNMP agent as multiple managers/browsers will be accessing the device, and a decision must be made based on IP address

My goal is:
- trigger a timeout condition whenever a particular IP address does not authenticate and perform a GET, SET, or GETBULK within the past X number of seconds, where X is a compile-time constant; and do this for several know IP addresses

The goal cannot be changed. It is a requirement, but the approach can be changed.
I would prefer to not modify NET-SNMP itself; but I can if it is necessary.
The version of NET-SNMP I am using is: 5.7.1 LTS.

Thank you for any assistance.

Timothy


________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.