netsnmp_read_only.3
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:2k
- .TH "read_only: make your handler read_only automatically" 3 "28 Nov 2005" "Version 5.2.1.rc3" "net-snmp" " -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- read_only: make your handler read_only automatically - The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.
- .PP
- .SS "Functions"
- .in +1c
- .ti -1c
- .RI "fBnetsnmp_mib_handlerfP * fBnetsnmp_get_read_only_handlerfP (void)"
- .br
- .RI "fIreturns a read_only handler that can be injected into a given handler chain. fP"
- .ti -1c
- .RI "int fBnetsnmp_read_only_helperfP (fBnetsnmp_mib_handlerfP *handler, fBnetsnmp_handler_registrationfP *reginfo, fBnetsnmp_agent_request_infofP *reqinfo, fBnetsnmp_request_infofP *requests)"
- .br
- .ti -1c
- .RI "void fBnetsnmp_init_read_only_helperfP (void)"
- .br
- .RI "fIinitializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. fP"
- .in -1c
- .SH "Detailed Description"
- .PP
- The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.
- .PP
- Inserting it into your handler chain will ensure you're never asked to perform a SET request so you can ignore those error conditions.
- .SH "Function Documentation"
- .PP
- .SS "fBnetsnmp_mib_handlerfP* netsnmp_get_read_only_handler (void)"
- .PP
- returns a read_only handler that can be injected into a given handler chain.
- .PP
- Definition at line 32 of file read_only.c.
- .PP
- References netsnmp_mib_handler_s::flags, MIB_HANDLER_AUTO_NEXT, netsnmp_create_handler(), netsnmp_read_only_helper(), and NULL.
- .PP
- Referenced by netsnmp_init_read_only_helper(), netsnmp_register_read_only_instance(), netsnmp_register_read_only_scalar(), and netsnmp_register_read_only_table_data().
- .SS "void netsnmp_init_read_only_helper (void)"
- .PP
- initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use.
- .PP
- Definition at line 86 of file read_only.c.
- .PP
- References netsnmp_get_read_only_handler(), and netsnmp_register_handler_by_name().