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

📄 general.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/general.h,v 1.2 2001/11/09 21:49:01 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: general.h,v $ * Revision 1.2  2001/11/09 21:49:01  josh * unxagent demo path adjustment, first pass * * Revision 1.1.1.1  2001/11/05 17:49:16  tneale * Tornado shuffle * * Revision 7.8  2001/01/19 22:25:01  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:17  meister * Update copyright message * * Revision 7.5  1998/02/25 15:22:00  sra * Finish moving types.h, bug.h, and bugdef.h to common/h/. * * Revision 7.4  1998/02/25 04:58:18  sra * Update copyrights. * * Revision 7.3  1997/03/20 06:54:08  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.1  1995/11/01  01:03:00  sar * removed objidcmp * * Revision 6.0  1995/05/31  21:49:42  sra * Release 6.0. * * 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.3  1993/05/13  22:22:28  sar * Added some defines, includes (<sysent.h> <errno.h> <libc.h>), casts * (struct sockaddr *) and changed memfoo to MEMFOO and objidcmp to * llist_cmp to get rid of warnings from the compiler. * * Revision 3.2  1993/04/22  20:23:42  sar * Updated macros and defines to use the naming scheme. * For example we now use INSTALL_ENVOY_SNMP_VERSION_1 or _2. * * Revision 3.1  1992/09/01  11:36:03  dab * Added ether_addr structure for those systems that don't have there own. * * Revision 3.0  92/04/03  19:53:44  dab * Release 3.0 *  * Revision 2.100  92/02/03  16:46:20  dab * Generic unix SNMP agent. *  *  *    Rev 2.0   31 Mar 1990 15:34:28 * Initial revision. * *//* [clearcase]modification history-------------------01a,19apr05,job  update copyright notices*//* Get the standard types and the install defines */#include <wrn/wm/util/common/config.h>#include <snark.h>#if !defined(EPILOGUE_TYPES_H)#include <wrn/wm/util/common/types.h>#endifstruct kernel_symbol {    char *name;    off_t offset;    short flags;};#define KO_VALID 1#define KO_FAILED 2#if defined(NO_ETHADDR_STRUCT)struct ether_addr {  unsigned char ether_addr_octet[6];};#endif/* Cache structure for interface list.  The interface list is gotten from the * kenel at startup.  The locations of the interface structures are remembered * here and the list is not read again.  This way, if the interface list * changes, the SNMP doesn't go changing interface numbers all around. */struct lif {    struct lif *next;	/* next interface in local list */    struct ifnet *ifp;	/* local copy of structure */    off_t koff;		/* kernel offset of structure */    int type;		/* interface type */    int speed;		/* interface speed */    int status;		/* admin status */    char name[IFNAMSIZ]; /* interface name */    time_t time;	/* when entry was last retrieved */    unsigned long       change_time;	/* when entry was last changed,	*/    					/* in timeticks.		*/    struct in_addr netmask; /* Subnet mask */    u_char flags;	/* See below */    struct ether_addr ac_enaddr;	/* ethernet hardware address */};/* Values for lif.flags: */#define	LIF_HAS_PHYSADDR	0x01extern struct lif *lif;		/* Local interface list */extern int ifnumber;		/* number of interfaces */extern int read_config		__((void));extern off_t find_loc		__((struct kernel_symbol *));extern int read_bytes		__((off_t, char *, int));extern int write_bytes		__((off_t, char *, int));extern int read_int		__((off_t));struct inpcb; /* defined elsewhere */extern void read_ct		__((struct inpcb **, off_t));extern int snmpvars_init	__((void));extern int libfuncs_init	__((void));extern int init			__((void));extern int sys_init		__((void));extern int ip_init		__((void));extern int icmp_init		__((void));extern int tcp_init		__((void));extern int udp_init		__((void));extern int arp_init		__((void));extern int if_init		__((void));extern void read_if		__((struct lif *lp));extern int get_interface_number __((off_t));extern int iprte_init		__((void));extern void send_traps		__((int, int));extern int setup_mib		__((void));#if 0extern struct in_addr frungulate __((int, unsigned int *));#endif

⌨️ 快捷键说明

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