📄 psosinit.c
字号:
/* * Copyright 2000-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. *//* * Copyright 1993-1998 Integrated Systems, Inc. * All rights reserved. *//* * $Log: psosinit.c,v $ * Revision 1.2 2001/11/06 21:20:20 josh * revised new path hacking * * Revision 1.1.1.1 2001/11/05 17:47:44 tneale * Tornado shuffle * * Revision 9.3 2001/01/19 22:22:14 paul * Update copyright. * * Revision 9.2 2000/04/05 19:07:45 josh * clearing up some warnings for pSOS+ 3.0 * * Revision 9.1 2000/03/17 00:18:16 meister * Update copyright message * * Revision 9.0 1998/10/16 22:10:35 sar * Update version stamp to match release * * Revision 1.2 1998/06/15 18:21:19 josh * added copyright notices * *//* [clearcase]modification history-------------------01b,18apr05,job update copyright notices01a,24nov03,job update copyright information*//* ************************************************************************ * * snmpinit.c * * Implements SNMP_Init() needed for pSOS+/SNMP applications * * *********************************************************************** */#include <wrn/wm/snmp/engine/asn1conf.h>#include <wrn/wm/snmp/engine/asn1.h>#include <wrn/wm/snmp/engine/localio.h>#include <wrn/wm/snmp/engine/buffer.h>#include <wrn/wm/snmp/engine/decode.h>#include <wrn/wm/snmp/engine/encode.h>#include <wrn/wm/snmp/engine/objectid.h>#include <wrn/wm/snmp/engine/snmpdefs.h>#include <wrn/wm/snmp/engine/snmp.h>#include <wrn/wm/snmp/engine/snmpstat.h>#include <wrn/wm/snmp/engine/wkobj.h>/* Needed for the LOCK INIT routines */#include <psos.h>#define SMVERSION "Envoy SNMP Version 9.1"/* Global variable for storing SNMP library-wide information */int max_oid_count;int max_packet_size;const char *sm_version = SMVERSION;const char *sm_getvers(void);const char *sm_getvers(){ return (sm_version);}/************************************************************************//* SNMP_Init: init all the statics requring initial values *//* INPUTS: *//* RETURNS: *//* OUTPUTS: *//* NOTE(S): *//************************************************************************/void SNMP_Init(snmp_cfg *scfgp){max_packet_size = scfgp->max_packet_size;max_oid_count = scfgp->max_oid_count;envoy_init();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -