hi,
 
i have figured out how to add in the handler code.
 
Now i want to process request according to different OID. how should i do this?
 
Thanks
 
Victor
 
----- Original Message -----
Sent: Tuesday, March 22, 2005 2:40 PM
Subject: MIB callback handler

hi,
 
I have built a customised MIB into SNMP agent.
 
Now I want to customise the the processing of SNMP GET/SET. I register a callback function in netsnmp_register_table_data_set().
 
The callback function is:

int
dot11xxxxxxx_handler(netsnmp_mib_handler *handler,
                                netsnmp_handler_registration *reginfo,
                                netsnmp_agent_request_info *reqinfo,
                                netsnmp_request_info *requests)
{
    /*
     * perform anything here that you need to do.  The requests have
     * already been processed by the master table_dataset handler, but
     * this gives you chance to act on the request in some other way
     * if need be.
     */
 
}
 
How to change this function, so that processing is according to OID? Where can i find example?
 
Rgds,
Siow Vic

Reply via email to