summaryrefslogtreecommitdiff
path: root/include/net-snmp/agent/read_only.h
blob: 41635b0e22357c0a214375d0acf0e380514faa35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef READ_ONLY_H
#define READ_ONLY_H

#ifdef __cplusplus
extern          "C" {
#endif

/*
 * read_only.h 
 */

/*
 * The helper merely intercepts SET requests and handles them early on
 * making everything read-only (no SETs are actually permitted).
 * Useful as a helper to handlers that are implementing MIBs with no
 * SET support.
 */


netsnmp_mib_handler *netsnmp_get_read_only_handler(void);
void            netsnmp_init_read_only_helper(void);

Netsnmp_Node_Handler netsnmp_read_only_helper;


#ifdef __cplusplus
}
#endif
#endif