components/net-snmp-57/sun/agent/modules/seaExtensions/snmpvars.h
changeset 5867 445e2cf1c845
parent 252 ee0fb1eabcbf
equal deleted inserted replaced
5866:683c5c035a79 5867:445e2cf1c845
       
     1 /*
       
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3  *
       
     4  * U.S. Government Rights - Commercial software. Government users are subject
       
     5  * to the Sun Microsystems, Inc. standard license agreement and applicable
       
     6  * provisions of the FAR and its supplements.
       
     7  *
       
     8  *
       
     9  * This distribution may include materials developed by third parties. Sun,
       
    10  * Sun Microsystems, the Sun logo and Solaris are trademarks or registered
       
    11  * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
       
    12  *
       
    13  */
       
    14 
       
    15 #if !defined(lint) && !defined(NOID)
       
    16 #pragma ident	"@(#)snmpvars.h	2.19	01/07/06 SMI"
       
    17 #endif
       
    18 
       
    19 /****************************************************************************
       
    20  *     Copyright (c) 1988  Epilogue Technology Corporation
       
    21  *     All rights reserved.
       
    22  *
       
    23  *     This is unpublished proprietary source code of Epilogue Technology
       
    24  *     Corporation.
       
    25  *
       
    26  *     The copyright notice above does not evidence any actual or intended
       
    27  *     publication of such source code.
       
    28  ****************************************************************************/
       
    29 
       
    30 /* $Header: /net/bigblock.east/files5/SMA_CVS/sun/agent/modules/seaExtensions/snmpvars.h,v 1.3 2003/08/12 21:14:54 rr144420 Exp $	*/
       
    31 /*
       
    32  * $Log: snmpvars.h,v $
       
    33  * Revision 1.3  2003/08/12 21:14:54  rr144420
       
    34  * 4895376 - correct Sun copyright statements. Cannot use (c), and must use Copyright Copyright in makefiles
       
    35  *
       
    36  * Revision 1.2  2003/08/08 15:39:54  pcarroll
       
    37  * 4895376 - The copyright statement in the demo* codes do not look right
       
    38  *
       
    39  * Revision 1.1  2003/07/28 17:59:23  dporter
       
    40  * 4892877 - Need SMA Agent to implement sun extensions found in SEA sun.mib
       
    41  *
       
    42  * 
       
    43  *    Rev 2.0   31 Mar 1990 15:34:28
       
    44  * Initial revision.
       
    45  * 
       
    46  *    Rev 1.1   26 Aug 1989 16:50:34
       
    47  * Moved ipForwarding into the ip_stats structure.
       
    48  * 
       
    49  *    Rev 1.0   14 Nov 1988 10:27:16
       
    50  * Initial revision.
       
    51 */
       
    52 
       
    53 #if (!defined(snmpvars_inc))
       
    54 #define	snmpvars_inc
       
    55 
       
    56 #if (!defined(asn1_inc))
       
    57 #include <asn1.h>
       
    58 #endif
       
    59 
       
    60 /**********************************************************************
       
    61  *
       
    62  * Define the various SNMP management variables used in this system.
       
    63  *
       
    64  * This file should closely match snmpvars.c
       
    65  *
       
    66  **********************************************************************/
       
    67 
       
    68 #define	SNMP_COMM_MAX	32
       
    69 #define MAX_SYSDESCR	256
       
    70 #define MAX_SYSCONTACT	256
       
    71 #define MAX_SYSNAME	256
       
    72 #define MAX_SYSLOCATION	256
       
    73 #define MAX_SYSNAME	256
       
    74 #define MAX_KERN_FILE	256
       
    75 #define MAX_NEW_DEVICE  10
       
    76 
       
    77 /* If you change the following definition, you also need to	*/
       
    78 /* change the sscanf format in setup.c accordingly.		*/
       
    79 #define	MAX_HOST_NAME_SZ	64
       
    80 
       
    81 /* If you redefine MAX_TRAPS_TO the scanf in read_con.c needs to	*/
       
    82 /* be changed accordingly.						*/
       
    83 #define	MAX_TRAPS_TO	5
       
    84 extern int	trap_2_cnt;		/* How many entries follow */
       
    85 extern u_long	traplist[MAX_TRAPS_TO];	/* IP addresses where to send traps */
       
    86 
       
    87 /* If you redefine MAX_MGR_SCANF the scanf in read_con.c needs to	*/
       
    88 /* be changed accordingly.						*/
       
    89 #define	MAX_MGR_SCANF	5
       
    90 #define	MAX_MGR		32
       
    91 extern int	mgr_cnt;		/* How many entries follow */
       
    92 extern u_long	mgr_list[MAX_MGR];	/* IP addresses for valid managers */
       
    93 
       
    94 #if 0
       
    95 extern	int		if_number;		/* ifNumber		*/
       
    96 #endif
       
    97 
       
    98 extern	char		snmp_sysgrp_read_community[];
       
    99 extern	char		snmp_sysgrp_write_community[];
       
   100 extern	char		snmp_fullmib_read_community[];
       
   101 extern	char		snmp_fullmib_write_community[];
       
   102 extern	char		snmp_trap_community[];
       
   103 extern	char		snmp_auth_traps;
       
   104 extern	OIDC_T		snmp_product_id[];
       
   105 extern	int		snmp_product_id_count;
       
   106 extern	OBJ_ID_T	snmp_sysObjectID;
       
   107 extern	unsigned char	snmp_local_ip_address[];
       
   108 extern	char		snmp_sysDescr[];
       
   109 extern	char		snmp_sysContact[];
       
   110 extern	char		snmp_sysName[];
       
   111 extern	char		snmp_sysLocation[];
       
   112 extern	struct timeval	boot_at;
       
   113 extern	char		kernel_file[];
       
   114 extern	int		trap_sd;
       
   115 extern	int		cache_lifetime;
       
   116 extern	int		snmp_socket;	/* Socket used to send traps and */
       
   117 					/* send/receive SNMP queries,	 */
       
   118 					/* usually UDP port 161		 */
       
   119 
       
   120 struct new_devicess {
       
   121    char name[32];
       
   122    int  type;
       
   123    long speed;
       
   124 } new_devices[MAX_NEW_DEVICE];
       
   125 
       
   126 int new_device_pointer;
       
   127  
       
   128 #endif	/* snmpvars_inc */