Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Main Page | Modules | Data Structures | File List | Data Fields | Related Pages | Examples

read_only: make your handler read_only automatically
[utility_handlers: simplify request processing]

The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode. More...

Functions

netsnmp_mib_handler netsnmp_get_read_only_handler (void)
  returns a read_only handler that can be injected into a given handler chain.
int  netsnmp_read_only_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
void  netsnmp_init_read_only_helper (void)
  initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use.

Detailed Description

The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.

Inserting it into your handler chain will ensure you're never asked to perform a SET request so you can ignore those error conditions.


Function Documentation

netsnmp_mib_handler* netsnmp_get_read_only_handler void   ) 
 

returns a read_only handler that can be injected into a given handler chain.

Definition at line 28 of file read_only.c.

References netsnmp_mib_handler_s::flags, netsnmp_create_handler(), and netsnmp_mib_handler.

Referenced by netsnmp_init_read_only_helper(), netsnmp_register_read_only_instance(), netsnmp_register_read_only_scalar(), and netsnmp_register_read_only_table_data().

void netsnmp_init_read_only_helper void   ) 
 

initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use.

Definition at line 80 of file read_only.c.

References netsnmp_get_read_only_handler(), and netsnmp_register_handler_by_name().


Generated on Fri Dec 30 13:48:00 2005 for net-snmp by  doxygen 1.3.9.1

Valid CSS!


Last modified: Thursday, 01-Mar-2007 16:20:00 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.