/usr/include/net-snmp/agent/read_only.h is in libsnmp-dev 5.7.3+dfsg-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|