1read_only(3)                       net-snmp                       read_only(3)
2
3
4

NAME

6       read_only - Make your handler read_only automatically The only purpose
7       of this handler is to return an appropriate error for any requests
8       passed to it in a SET mode.
9
10
11   Functions
12       netsnmp_mib_handler * netsnmp_get_read_only_handler (void)
13           returns a read_only handler that can be injected into a given
14           handler chain.
15       int netsnmp_read_only_helper (netsnmp_mib_handler *handler,
16           netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
17           *reqinfo, netsnmp_request_info *requests)
18       void netsnmp_init_read_only_helper (void)
19           initializes the read_only helper which then registers a read_only
20           handler as a run-time injectable handler for configuration file
21           use.
22

Detailed Description

24       Make your handler read_only automatically The only purpose of this
25       handler is to return an appropriate error for any requests passed to it
26       in a SET mode.
27
28       Inserting it into your handler chain will ensure you're never asked to
29       perform a SET request so you can ignore those error conditions.
30

Function Documentation

32   netsnmp_mib_handler* netsnmp_get_read_only_handler (void)
33       returns a read_only handler that can be injected into a given handler
34       chain.
35
36       Definition at line 29 of file read_only.c.
37
38       References netsnmp_mib_handler_s::flags, MIB_HANDLER_AUTO_NEXT,
39       netsnmp_create_handler(), netsnmp_read_only_helper(), and NULL.
40
41       Referenced by netsnmp_init_read_only_helper(),
42       netsnmp_register_read_only_instance(),
43       netsnmp_register_read_only_scalar(), and
44       netsnmp_register_read_only_table_data().
45
46   void netsnmp_init_read_only_helper (void)
47       initializes the read_only helper which then registers a read_only
48       handler as a run-time injectable handler for configuration file use.
49
50       Definition at line 81 of file read_only.c.
51
52       References netsnmp_get_read_only_handler(), and
53       netsnmp_register_handler_by_name().
54
55
56
57Version 5.4                       24 Nov 2006                     read_only(3)
Impressum