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

📄 envoy.h

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
字号:
/* $Header: /usr/cvsroot/target/h/wrn/wm/util/port/sunos/envoy.h,v 1.1.1.1 2001/11/05 17:47:16 tneale Exp $ *//* * Copyright (C) 1999-2004 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-1997 Epilogue Technology Corporation. *  Copyright 1998 Integrated Systems, Inc. *  All rights reserved. ****************************************************************************//* * $Log: envoy.h,v $ * Revision 1.1.1.1  2001/11/05 17:47:16  tneale * Tornado shuffle * * Revision 1.8  2001/01/19 22:23:18  paul * Update copyright. * * Revision 1.7  2000/03/17 00:11:00  meister * Update copyright message * * Revision 1.6  1998/06/22 01:05:52  sar * Moved common porting stuff to generic/envoy.h * * Revision 1.5  1998/06/17 05:05:30  sar * Tidy up some macros for views * * Revision 1.4  1998/06/10 19:22:12  sar * Added V3 macros and routines and rearranged the whole file * to be more readable (at least to me). * * Revision 1.3  1998/02/25 04:57:09  sra * Update copyrights. * * Revision 1.2  1997/11/04 00:29:37  sar * Changed the agentx sub agent timeout period from 10000 (10 seconds) * which was used for testing to 1000 (1 second). * * Revision 1.1  1997/10/23 06:21:30  sar * Updates for agentx, this includes some new installation options and * renaming the older ones for the older subagent scheme * * Revision 1.0  1997/08/08 22:11:23  meister * Bumped revision number to 1.0 to hopfully get rid of the spurious * added files weirdness * * Revision 0.5  1997/03/20 06:57:53  sra * DFARS-safe copyright text.  Zap! * * Revision 0.4  1997/02/25 10:58:16  sra * Update copyright notice, dust under the bed. * * Revision 0.3  1997/01/15 22:30:42  sar * moved location of nvutils.h to snark/snmptalk * * Revision 0.2  1996/10/28  02:44:53  sra * Fix missing comment marker. * * Revision 0.1  1996/10/23  00:14:56  sar * *** empty log message *** * *//* [clearcase]modification history-------------------*//* previous revision history when this was envoy/port/sunos/envoy.h * with rev and copyright updates removed * * Revision 6.5  1996/02/27  00:03:03  sar * Updated partytime to be usectime * * Revision 6.4  1995/11/14  22:37:59  sar * If proxy is installed release_private is proxy_release_private * * Revision 6.3  1995/11/10  23:59:08  sar * stopped using the pre & post set user exits for the nvview stuff * * Revision 6.2  1995/11/06  20:05:22  sar * Removed validate_community's dependency on install v1 * removed validate_address & validate_vesion * * Revision 6.1  1995/10/20  23:15:55  sar * removed party, context and acl macros * * Revision 5.6  1995/05/22  19:39:24  sar * Modified the lock code to add some new macros. * * Revision 5.5  1995/05/02  23:39:31  sar * Added the envoy timer macros. * * Revision 5.4  1995/05/01  21:58:15  sar * Put the example lock macros in an ifdef block * * Revision 5.3  1995/05/01  20:59:29  sra * Have to test CONFIG_PPREAMBLE with #ifdef, not #if. * * Revision 5.2  1994/11/01  17:59:04  sar * *_add_mod routines now take a flag as well as an data block. * * Revision 5.1  1994/09/29  20:39:39  sar * added macros for a simple locking scheme to test the compiliation of * our code * Modified the macros for use with the non volatile storage stuff to * use the new (as of fall 94) scheme. * * Revision 4.3  1994/05/12  17:24:05  sar * moved the include for nvutils.h to make it available for everybody * that needs it. * * Revision 4.2  1994/05/10  20:21:45  sar * moved view defines aroudn so they are available in other than v2 settings. * * Revision 4.1  1994/05/09  21:06:41  sar * Added define for SNMP_RESETSYSUPTIME to be nothing. * *//*****************************************************************  This is the platform specific part of envoy.h for use with the  example code.  It contains only the platform specific pieces of  the port code.  The common porting code is in generic/envoy.h.  In general customers will have one envoy.h file per platform  that combines this file and the platform specific information,  we use two files as there is a lot of shared code between our  demos.*****************************************************************/#ifdef CONFIG_PREAMBLE/*****************************************************************   System Includes:   Envoy uses memcpy(), memset(), and strlen().  The appropriate  include file should be put here to see that these routines are  properly declared.  If no such include file exists on the system  then declare memcpy() and memset() here directly.  Envoy also  uses min() and max().  Include the system's definition or use the  macros supplied below.*****************************************************************/#include <memory.h>#include <string.h>/*****************************************************************  Memory allocation routines.  Envoy needs to allocate memory to  decode the packet into and also to store the response data  Make sure that the routines used by the SNMP_memory_alloc() and  SNMP_memory_free() macros are declared.  If system memory routines  are used (e.g. malloc() and free()) then include the appropriate  system header file here.*****************************************************************//* Get malloc and free declarations */#include <stdlib.h>#define SNMP_memory_alloc(need)	malloc(need)#define SNMP_memory_free(buf)	free(buf)#include <port/generic/envoy.h>#else /* config preamble */#include <port/generic/envoy.h>#endif /* CONFIG_PREAMBLE */

⌨️ 快捷键说明

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