/usr/include/net-snmp/library/check_varbind.h is in libsnmp-dev 5.4.3~dfsg-2.4ubuntu1.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #ifndef SNMP_CHECK_VARBIND_H
#define SNMP_CHECK_VARBIND_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Assorted convience routines to check the contents of a
* netsnmp_variable_list instance.
*/
int netsnmp_check_vb_type(const netsnmp_variable_list *var, int type);
int netsnmp_check_vb_size(const netsnmp_variable_list *var, size_t size );
int netsnmp_check_vb_max_size(const netsnmp_variable_list *var, size_t size );
int netsnmp_check_vb_range(const netsnmp_variable_list *var,
size_t low, size_t high );
int netsnmp_check_vb_size_range(const netsnmp_variable_list *var,
size_t low, size_t high );
int netsnmp_check_vb_type_and_size(const netsnmp_variable_list *var,
int type, size_t size);
int netsnmp_check_vb_type_and_max_size(const netsnmp_variable_list *var,
int type, size_t size);
int netsnmp_check_vb_oid(const netsnmp_variable_list *var);
int netsnmp_check_vb_int(const netsnmp_variable_list *var);
int netsnmp_check_vb_uint(const netsnmp_variable_list *var);
int netsnmp_check_vb_int_range(const netsnmp_variable_list *var, int low,
int high);
int netsnmp_check_vb_truthvalue(const netsnmp_variable_list *var);
int netsnmp_check_vb_rowstatus_value(const netsnmp_variable_list *var);
int netsnmp_check_vb_rowstatus(const netsnmp_variable_list *var, int old_val);
int netsnmp_check_vb_storagetype(const netsnmp_variable_list *var, int old_val);
#ifdef __cplusplus
}
#endif
#endif /* SNMP_CHECK_VARBIND_H */
|