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

📄 snmpvars.h

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
字号:
/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/unxagent/sun/snmpvars.h,v 1.3 2002/03/06 20:02:38 josh Exp $ *//* * Copyright (C) 1999-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 1988-1997 Epilogue Technology Corporation. *  Copyright 1998 Integrated Systems, Inc. *  All rights reserved. ****************************************************************************//* * $Log: snmpvars.h,v $ * Revision 1.3  2002/03/06 20:02:38  josh * the unxagent will now listen on an IPv6 socket, if IPv6 is * available * * Revision 1.2  2001/11/09 21:49:03  josh * unxagent demo path adjustment, first pass * * Revision 1.1.1.1  2001/11/05 17:49:17  tneale * Tornado shuffle * * Revision 7.8  2001/01/19 22:25:03  paul * Update copyright. * * Revision 7.7  2000/07/10 15:55:17  mrf * Add configuration for Cygnus NT environment with associated changes. * * Revision 7.6  2000/03/17 00:15:33  meister * Update copyright message * * Revision 7.5  1998/06/07 03:04:43  sar * Moved the global variables for the non-volatile configuration stuff * and the community strings to the snark library. * Also changed the names of the configuration variables * * Revision 7.4  1998/02/25 04:58:24  sra * Update copyrights. * * Revision 7.3  1997/03/20 06:54:15  sra * DFARS-safe copyright text.  Zap! * * Revision 7.2  1997/02/25 10:58:16  sra * Update copyright notice, dust under the bed. * * Revision 7.1  1997/01/08 23:01:49  sar * Updated copyright and modified include files to use envoy/h as * appropriate * * Revision 7.0  1996/03/15  22:07:57  sar * Updated revision to 7.0 and copyright to 96 * * Revision 6.3  1995/11/14  22:46:31  sar * Added SetSerialNo * * Revision 6.2  1995/11/11  00:12:33  sar * added a new command option to decide whre the viewtree comes from - * the config.txt file or nvviews.c * * Revision 6.1  1995/11/01  01:03:00  sar * redefined the config stuff to install on rfc1445_view_routines * * Revision 6.0  1995/05/31  21:49:50  sra * Release 6.0. * * Revision 5.3  1995/03/21  19:37:43  sar * Defined snp_use_async to allow us to switch between sync and async * processing on the fly. * * Revision 5.2  1994/09/29  20:34:40  sar * Modified the allocation of the SNMP_Talk_NV strings we now have * a pointer for use in nvutils.c and a array for use in read_con.c * for each of the the three names. * * Revision 5.1  1994/09/23  19:32:44  sar * Changed the non volatile scheme, and added some new options to the * config file. * * Revision 5.0  1994/05/16  16:20:43  sar * Updated revision to 5.0 and copyright to include 1994 * * Revision 4.0  1993/06/24  17:34:02  sar * Updated rev to 4.0 copyright to 93 * * Revision 3.1  1992/09/01  11:38:36  dab * Fixed up for Mach386 * * Revision 3.0  92/04/03  19:53:44  dab * Release 3.0 *  * Revision 2.100  92/02/03  16:46:21  dab * Generic unix SNMP agent. *  *  *    Rev 2.0   31 Mar 1990 15:34:28 * Initial revision. *  *    Rev 1.1   26 Aug 1989 16:50:34 * Moved ipForwarding into the ip_stats structure. *  *    Rev 1.0   14 Nov 1988 10:27:16 * Initial revision.*//* [clearcase]modification history-------------------01a,19apr05,job  update copyright notices*/#if (!defined(snmpvars_inc))#define	snmpvars_inc#include <wrn/wm/snmp/engine/asn1conf.h>#if (!defined(asn1_inc))#include <wrn/wm/snmp/engine/asn1.h>#endif/********************************************************************** * * Define the various SNMP management variables used in this system. * * This file should closely match snmpvars.c * **********************************************************************/#define MAX_SYSDESCR	256#define MAX_SYSCONTACT	256#define MAX_SYSNAME	256#define MAX_SYSLOCATION	256#define MAX_SYSNAME	256#define MAX_KERN_FILE	256/* If you change the following definition, you also need to	*//* change the sscanf format in setup.c accordingly.		*/#define	MAX_HOST_NAME_SZ	64/* If you redefine MAX_TRAPS_TO the scanf in setup.c needs to	*//* be changed accordingly.					*/#define	MAX_TRAPS_TO	5extern int	trap_2_cnt;		/* How many entries follow */extern u_long	traplist[MAX_TRAPS_TO];	/* IP addresses where to send traps */#if 0extern	int		if_number;		/* ifNumber		*/#endifextern	char		snmp_auth_traps;extern	OIDC_T		snmp_product_id[];extern	int		snmp_product_id_count;extern	OBJ_ID_T	snmp_sysObjectID;extern	unsigned char	snmp_local_ip_address[];extern	char		snmp_sysDescr[];extern	char		snmp_sysContact[];extern	char		snmp_sysName[];extern	char		snmp_sysLocation[];extern	struct timeval	boot_at;extern	char		kernel_file[];extern	int		trap_sd;extern	int		snmp_socket;	/* Socket used to send traps and */					/* send/receive SNMP queries,	 */					/* usually UDP port 161		 */#if INSTALL_SNMP_DEMO_AGENT_IPV6extern  int             snmp_ipv6_socket;  /* snmp_socket for IPv6       */#endifextern	int		snmp_use_async;	/* 0 use the old sync style call					   1 use the new async style call */extern	INT_32_T	snmpSetSerialNo; /* space for the serial no *//* declared in iprte.c */extern OBJ_ID_T iprte_route_info;/* this should be generated automatically by the mib compiler in mibhand.h * but for some reason it's not. void null_set_proc(OIDC_T, int, OIDC_T *, char *, INT_32_T, SNMP_PKT_T *, int);*/#endif	/* snmpvars_inc */

⌨️ 快捷键说明

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