vacm_vars.h
资源名称:snmp.src.rar [点击查看]
上传用户:cxs890
上传日期:2021-05-22
资源大小:347k
文件大小:2k
源码类别:
SNMP编程
开发平台:
C/C++
- /*
- * SNMPv3 View-based Access Control Model
- */
- #ifndef _MIBGROUP_VACM_H
- #define _MIBGROUP_VACM_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- config_require(util_funcs)
- config_add_mib(SNMP-VIEW-BASED-ACM-MIB)
- config_add_mib(SNMP-COMMUNITY-MIB)
- void init_vacm_vars (void);
- void vacm_free_security (void);
- void vacm_free_group (void);
- void vacm_free_access (void);
- void vacm_free_view (void);
- void vacm_parse_security (const char *, char *);
- void vacm_parse_group (const char *, char *);
- void vacm_parse_access (const char *, char *);
- void vacm_parse_view (const char *, char *);
- void vacm_parse_simple (const char *, char *);
- SNMPCallback vacm_in_view_callback;
- int vacm_in_view (struct snmp_pdu *, oid *, size_t);
- void vacm_DestroyCommunityAll (void);
- extern FindVarMethod var_vacm_sec2group;
- extern FindVarMethod var_vacm_access;
- extern FindVarMethod var_vacm_view;
- extern FindVarMethod var_vacmViewSpinLock;
- /*Write method for sec2group*/
- extern WriteMethod write_vacmSecurity2GroupStatus;
- extern WriteMethod write_vacmSecurityToGroupStorageType;
- extern WriteMethod write_vacmGroupName;
- /*Write method for vacm access*/
- extern WriteMethod write_vacmAccessContextMatch;
- extern WriteMethod write_vacmAccessReadViewName;
- extern WriteMethod write_vacmAccessWriteViewName;
- extern WriteMethod write_vacmAccessNotifyViewName;
- extern WriteMethod write_vacmAccessStorageType;
- extern WriteMethod write_vacmAccessStatus;
- /*Write method for vacm view*/
- extern WriteMethod write_vacmViewTreeFamilyMask;
- extern WriteMethod write_vacmViewTreeFamilyType;
- extern WriteMethod write_vacmViewTreeFamilyStorageType;
- extern WriteMethod vacmViewTreeFamilyStatus;
- /*Write method for spin lock*/
- extern WriteMethod write_vacmViewSpinLock;
- #define VACMVIEWSPINLOCK 1
- #define OID_SNMPVACMMIB SNMP_OID_SNMPMODULES, 16
- #define OID_VACMMIBOBJECTS OID_SNMPVACMMIB, 1
- #define OID_VACMCONTEXTTABLE OID_VACMMIBOBJECTS, 1
- #define OID_VACMCONTEXTENTRY OID_VACMCONTEXTTABLE, 1
- #define OID_VACMGROUPTABLE OID_VACMMIBOBJECTS, 2
- #define OID_VACMGROUPENTRY OID_VACMGROUPTABLE, 1
- #define OID_VACMACCESSTABLE OID_VACMMIBOBJECTS, 4
- #define OID_VACMACCESSENTRY OID_VACMACCESSTABLE, 1
- #define OID_VACMMIBVIEWS OID_VACMMIBOBJECTS, 5
- #define OID_VACMVIEWTABLE OID_VACMMIBVIEWS, 2
- #define OID_VACMVIEWENTRY OID_VACMVIEWTABLE, 1
- #define OID_VACMSPINLOCK OID_VACMMIBVIEWS, 1
- #ifdef __cplusplus
- }
- #endif
- #endif /* _MIBGROUP_VACM_H */