📄 dyncfgv3.c
字号:
/* * Copyright 2001-2005 Wind River Systems, Inc. * All rights reserved. Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//* * $Log: dyncfgv3.c,v $ * Revision 1.6 2003/01/15 14:05:03 josh * directory structure shifting * * Revision 1.5 2001/12/11 18:19:58 meister * A_DecodeInteger64Data doesn't really need to be DYNCFG'd. * * Revision 1.4 2001/11/07 16:42:09 meister * vxprotos.h not needed here * * Revision 1.3 2001/11/06 21:50:46 josh * second (and hopefully final) pass of new path hacking * * Revision 1.2 2001/11/06 21:20:08 josh * revised new path hacking * * Revision 1.1.1.1 2001/11/05 17:47:42 tneale * Tornado shuffle * * Revision 1.1.2.8 2001/11/02 17:13:10 meister * split out user and core dynamic config initialization * * Revision 1.1.2.7 2001/10/16 19:24:36 meister * add vxprotos.h include file * * Revision 1.1.2.6 2001/10/16 18:33:24 meister * split out v3 mibs * * Revision 1.1.2.5 2001/10/02 17:55:37 meister * Start splitting out the V3 mib subtrees, to be loaded at startup * * Revision 1.1.2.4 2001/09/27 13:45:14 meister * dynamic config rototill; missed SNMP_Check_Retrans_List() * * Revision 1.1.2.3 2001/09/27 01:11:34 meister * dynamic V3 config rototill * * Revision 1.1.2.2 2001/09/20 17:10:45 meister * added some missing dynamic component function pointer initializations * * Revision 1.1.2.1 2001/08/17 20:46:44 meister * These files will contain dynamic component config initialization * routines for agentX and V3 components * *//* [clearcase]modification history-------------------01b,18apr05,job update copyright notices01a,24nov03,job update copyright information*/#include <wrn/wm/snmp/engine/asn1.h>#include <wrn/wm/snmp/engine/snmp.h>#include <wrn/wm/snmp/engine/decode.h>#include <wrn/wm/snmp/engine/sendntfy.h>#include <wrn/wm/snmp/engine/snmpdefs.h>#include <wrn/wm/snmp/engine/localio.h>#include <wrn/wm/snmp/engine/v3_ini.h>#include <wrn/wm/common/dyncfg.h>/* * set all dynamic configuration function pointers and variables for the * vxworks snmpv3 component here */DYNCFG_EXTERN_FUNCPTR6(SNMP_Decode_V3_Packet,SNMP_PKT_T*,SNMP_PKT_T *, LCL_FILE *, SNMPADDR_T *, SNMPADDR_T *, ALENGTH_T, int *)DYNCFG_EXTERN_FUNCPTR1(SNMP_Check_Retrans_List,void,SNMP_PKT_T *)DYNCFG_EXTERN_FUNCPTR0(envoy_v3_init,void)DYNCFG_EXTERN_FUNCPTR0(SNMP_Auth_Add_MD5,int)DYNCFG_EXTERN_FUNCPTR0(SNMP_Auth_Add_SHA,int)DYNCFG_EXTERN_FUNCPTR0(SNMP_Priv_Add_DES,int)DYNCFG_EXTERN_FUNCPTR1(bufsize_for_v3_pkt,ALENGTH_T,SNMP_PKT_T *)DYNCFG_EXTERN_FUNCPTR2(encode_snmp_v3,int,SNMP_PKT_T *,EBUFFER_T *)DYNCFG_EXTERN_FUNCPTR9(Send_Report_PDU,SNMP_PKT_T *,SNMP_PKT_T *,LCL_FILE *, bits8_t,OIDC_T *,int,bits32_t,int *,SNMPADDR_T *, SNMPADDR_T *)void v3_dyncfg_init (void){DYNCFG_FUNCPTR_SET_DEFAULT(SNMP_Decode_V3_Packet);#if INSTALL_ENVOY_SNMP_V3_NOTIFYDYNCFG_FUNCPTR_SET_DEFAULT(SNMP_Check_Retrans_List);#endifDYNCFG_FUNCPTR_SET_DEFAULT(envoy_v3_init);DYNCFG_FUNCPTR_SET_DEFAULT(SNMP_Auth_Add_MD5);DYNCFG_FUNCPTR_SET_DEFAULT(SNMP_Auth_Add_SHA);DYNCFG_FUNCPTR_SET_DEFAULT(SNMP_Priv_Add_DES);DYNCFG_FUNCPTR_SET_DEFAULT(bufsize_for_v3_pkt);DYNCFG_FUNCPTR_SET_DEFAULT(encode_snmp_v3);DYNCFG_FUNCPTR_SET_DEFAULT(Send_Report_PDU);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -