⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 envoy.h

📁 vxworks 6.x 的全部头文件
💻 H
📖 第 1 页 / 共 3 页
字号:
			snmp_v3_proxy_set(PKT, VBP, CUR, NEW)#define SNMP_V3_PROXY_UPDATE_SET(PKT, VBP, CUR, NEW)                    \			snmp_v3_proxy_set(PKT, VBP, CUR, NEW)#define SNMP_V3_PROXY_DESTROY_BACKOUT(CUR, NEW)                         \                        snmp_v3_proxy_backout(CUR, NEW)#define SNMP_V3_PROXY_CREATE_BACKOUT(CUR, NEW)	                        \                        snmp_v3_proxy_backout(CUR, NEW)#define SNMP_V3_PROXY_UPDATE_BACKOUT(CUR, NEW)	                        \                        snmp_v3_proxy_backout(CUR, NEW)#define SNMP_V3_PROXY_CREATE_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_v3_proxy_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_PROXY_UPDATE_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_v3_proxy_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_PROXY_DESTROY_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_v3_proxy_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_PROXY_FINISHED()      snmp_v3_proxy_finished()#define SNMP_V3_COMM_DESTROY_TEST(PKT, VBP, CUR, NEW)                   \			snmp_community_test(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_CREATE_TEST(PKT, VBP, CUR, NEW)                    \			snmp_community_test(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_UPDATE_TEST(PKT, VBP, CUR, NEW)                    \			snmp_community_test(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_DESTROY_SET(PKT, VBP, CUR, NEW)                   \			snmp_community_set(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_CREATE_SET(PKT, VBP, CUR, NEW)                    \			snmp_community_set(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_UPDATE_SET(PKT, VBP, CUR, NEW)                    \			snmp_community_set(PKT, VBP, CUR, NEW)#define SNMP_V3_COMM_DESTROY_BACKOUT(CUR, NEW)                         \                        snmp_community_backout(CUR, NEW)#define SNMP_V3_COMM_CREATE_BACKOUT(CUR, NEW)	                        \                        snmp_community_backout(CUR, NEW)#define SNMP_V3_COMM_UPDATE_BACKOUT(CUR, NEW)	                        \                        snmp_community_backout(CUR, NEW)#define SNMP_V3_COMM_CREATE_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_community_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_COMM_UPDATE_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_community_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_COMM_DESTROY_UNDO(PKT, VBP, CUR, SAV)	                \                        snmp_community_undo(PKT, VBP, CUR, SAV)#define SNMP_V3_COMM_FINISHED()      snmp_community_finished()#if INSTALL_ENVOY_SNMP_V3_PROXYvoid snmpSendProxyPkt __((SNMPADDR_T *, SNMPADDR_T *,                          PTR_T, ALENGTH_T));#define ENVOY_SNMP_SEND_PROXY(FOR, LOC, PKT, SIZ) \    snmpSendProxyPkt((FOR), (LOC), (PKT), (SIZ))#endif /* #if INSTALL_ENVOY_SNMP_V3_PROXY */#if INSTALL_SNMP_V3_DIFFIE_HELLMAN#define SNMP_DH_RAND() snmpDHRand()#endif#endif /* #if INSTALL_ENVOY_SNMP_VERSION_3 */#if (INSTALL_ENVOY_EPI_MASTER)#define SNMP_RESETSYSUPTIME#endif#if (INSTALL_ENVOY_AGENTX_MASTER) || (INSTALL_ENVOY_ENTITY_MIB)extern bits32_t envoyGetSysUpTime();#define ENVOY_GET_SYSUPTIME(CON) envoyGetSysUpTime(CON)#endif /* #if (INSTALL_ENVOY_AGENTX_MASTER) || (INSTALL_ENVOY_ENTITY_MIB) *//* Routines required by agentx */#if INSTALL_ENVOY_AGENTX_MASTER/* This placeholders eliminate need to include axapi.h and *//* the attendant duplicate definitions that can occur.     */struct AX_CONNENT_S;struct AX_CONN_S;/* Master agent routines and macros */extern bits32_t envoyAxConnEntry (bits32_t axConnID, int matchFlag, struct AX_CONNENT_S *pConnEntry);extern bits32_t envoyAxGetConnID (struct AX_CONN_S *pCE);#define ENVOY_AX_CONN_ENTRY(INDEX, MATCH_TYPE, P_CONNENT) envoyAxConnEntry(INDEX, MATCH_TYPE, P_CONNENT)#define ENVOY_AX_GET_CONNID(CONN_ENTRY) envoyAxGetConnID(CONN_ENTRY)#endif /* #if INSTALL_ENVOY_AGENTX_MASTER */#if INSTALL_ENVOY_AGENTX_SUB/* then we do the subagent agentx macros */extern int envoy_ax_sa_mib_root_node __((PTR_T, SNMP_PKT_T *));#define ENVOY_AX_SA_MIB_ROOT_NODE(CKE, PKT) envoy_ax_sa_mib_root_node(CKE, PKT)#define ENVOY_AX_SA_TIMEOUT 1000#endif /* #if INSTALL_ENVOY_AGENTX_SUB *//*---------------------------------------------------------------- SNMP_release_private -- Get rid of a any private data attached to the packet                    structure.  May be left undefined in which case nothing                    is done with the private field when the SNMP packet                    structure is freed. Parameters:        SNMP_PKT_T *pkt         The packet itself Returns: Nothing ----------------------------------------------------------------*/extern  void snmpHookPrivRelease __((SNMP_PKT_T*));#define SNMP_release_private(pkt)  snmpHookPrivRelease (pkt) #if (INSTALL_ENVOY_SNMP_PROXY)extern void proxy_release_private __((SNMP_PKT_T *));#define SNMP_release_private(pkt) proxy_release_private(pkt)#endif /* (INSTALL_ENVOY_SNMP_PROXY) *//*---------------------------------------------------------------- SNMP_user_get_encode_buffer -- Allows the user the opportunity to get the                        buffer that the SNMP packet will be encoded into.                        If not used then leave undefined. Parameters:        SNMP_PKT_T      *pkt    The packet being encoded.        unsigned int    need    The amount of storage needed.        EBUFFER_T       *ebuffp The ebuffer to fill in with the actual                                buffer. Returns:        0   successful        1   not successful ----------------------------------------------------------------*//* #define SNMP_user_get_encode_buffer(pkt, need, ebuffp) 0 *//*---------------------------------------------------------------- SNMP_trace_input SNMP_trace_output                -- for implementing packet tracing through the                   SNMP code.  May not be left undefined but may                   instead be defined as nothing. Parameters:        SNMP_PKT_T *pkt         The packet being traced Returns: Nothing ----------------------------------------------------------------*/extern void snmpTraceInput (SNMP_PKT_T *);#define SNMP_TRACE_INPUT(pkt)   snmpTraceInput (pkt)#define SNMP_TRACE_OUTPUT(pkt)/***************************************************************** * The next series of macros are hooks into the processing of SET PDUs. * For most uses you should be able to leave these undefined. *****************************************************************//*---------------------------------------------------------------- SNMP_validate_set_pdu -- Perform a global validation of a SET PDU.          Parameters:        SNMP_PKT_T *pkt         The packet itself Returns:         -1 If the PDU is bad and should be rejected with a GEN_ERR.          0 If the PDU is good and normal handling should proceed.         +1 If the PDU is good and this routine has performed all of            the set operations internally. ----------------------------------------------------------------*/extern int snmpHookSetPduValidate   __((SNMP_PKT_T*));#define SNMP_validate_set_pdu(pkt) snmpHookSetPduValidate (pkt)  /*---------------------------------------------------------------- SNMP_user_pre_set -- Perform a global validation of a SET PDU after all of the                 test procedures have been called and given the "go ahead".          Parameters:        SNMP_PKT_T *pkt         The packet itself Returns:         -1 If the PDU is bad and should be rejected with a GEN_ERR.          0 If the PDU is good and normal handling should proceed.         +1 If the PDU is good and this routine has performed all of            the set operations internally. ----------------------------------------------------------------*/extern  int snmpHookPreSet   __((SNMP_PKT_T*));#define SNMP_user_pre_set(pkt) snmpHookPreSet(pkt)/*---------------------------------------------------------------- SNMP_user_post_set -- Perform any final activities after all of the set                  procedures have been called. Parameters:        SNMP_PKT_T *pkt         The packet itself Returns: Nothing ----------------------------------------------------------------*/extern  int snmpHookPostSet   __((SNMP_PKT_T*));#define SNMP_user_post_set   snmpHookPostSet/************************************************************************************** set failed routine*/extern int snmpHookSetFailed   __((SNMP_PKT_T*));#define SNMP_user_set_failed           snmpHookSetFailed#if (INSTALL_ENVOY_SNMP_LOCK) #define ENVOY_SNMP_LOCK(name)                ENVOY_LOCK_T name #define ENVOY_SNMP_LOCK_EXTERN(name)         extern  ENVOY_LOCK_T name #define ENVOY_SNMP_INIT_LOCK(name)           (name) = semBCreate (SEM_Q_PRIORITY, SEM_FULL)#define ENVOY_SNMP_FREE_LOCK_TAG(name, tag)  semDelete ((name))#define ENVOY_SNMP_GET_READ_LOCK(name)       semTake (name, WAIT_FOREVER)#define ENVOY_SNMP_GET_WRITE_LOCK(name)      semTake (name, WAIT_FOREVER)#define ENVOY_SNMP_RELEASE_READ_LOCK(name)   semGive (name)#define ENVOY_SNMP_RELEASE_WRITE_LOCK(name)  semGive (name)#endif /* (INSTALL_ENVOY_SNMP_LOCK) */extern void     envoy_call_timer __((bits32_t, void (*)(void)));extern bits32_t envoy_now        __((void));#define ENVOY_CALL_TIMER(T, H)  envoy_call_timer(T, H)#define ENVOY_NOW()             envoy_now()/* Definitions for use with the Virtual Stack features. * SNMP_VIRTUAL_STACK_NUM specifies the number of virtual stacks for whcih we * should add community and context information. * SNMP_SET_VIRTUAL_STACK specifies the function to call to actually change * the virtual stack we wish to use * NAMING_SCOPE_PREFIX specifies the string to be prepended to the stack number * for use within a community string or context name. * ENT_LOGICAL_DESCR specifies the string to be prepended to the description in * the entity table * ENT_LOGICAL_TADDRESS specifies the address to be used in the entity table */#if INSTALL_SNMP_VXWORKS_VIRTUAL_STACK#define SNMP_VIRTUAL_STACK_NUM 2#define SNMP_SET_VIRTUAL_STACK  virtualStackNumTaskIdSet#define NAMING_SCOPE_PREFIX "VS"#if INSTALL_SNMP_VXWORKS_VS_ENTITY#define ENT_LOGICAL_DESCR	"Virtual Stack #"#define ENT_LOGICAL_TADDRESS	"192.168.0.52"#endif /* INSTALL_SNMP_VXWORKS_VS_ENTITY *//* Routines for use with the dynamic naming features.  This feature allows * community strings or context names to be dynamically configured instead * of being statically built at compile time.  This feature is useful with * the virtual stack option to allow new community strings or context names * to be added (removed) as a virtual is created (destroyed). */extern void defaultCommunityStringsRegister __((bits32_t));#define DEFAULT_COMMUNITIES_REGISTER(vsNum) \    defaultCommunityStringsRegister (vsNum)extern void vsCommunityStringsRegister __((int));#define VS_COMMUNITY_REGISTER(vsNum) \    vsCommunityStringsRegister (vsNum)#if INSTALL_ENVOY_SNMP_VERSION_3extern void defaultContextNamesRegister __((bits32_t));#define DEFAULT_CONTEXTS_REGISTER(vsNum) \    defaultContextNamesRegister (vsNum)extern void vsContextNameRegister __((int));#define VS_CONTEXT_REGISTER(vsNum) \    vsContextNameRegister (vsNum)#endif /* INSTALL_ENVOY_SNMP_VERSION_3 */#endif /* INSTALL_SNMP_VXWORKS_VIRTUAL_STACK */#define snmpdGroupByGetprocAndInstance group_by_getproc_and_instance  #define snmpdVbRowLooseExtract         vb_extract_row_loose           #define snmpdVbRowExtract              vb_extract_row                 #define snmpdContinue                  SNMP_Continue_function         #define SNMP_user_set_failed           snmpHookSetFailed              #endif /* CONFIG_PREAMBLE */#ifdef __cplusplus}#endif  /* __cplusplus */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -