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

📄 ttcfg.c

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 C
字号:
/* *  Copyright 2001-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. */#include <copyright_wrs.h>/* ttcfg.c  - Support routines for TAE device management *//*modification history-------------------------01c,19apr05,job  update copyright notices01b,03dec03,job  update copyright information01a,08Jan2001,tneale Created for TAE subagent*//* * $Log: ttcfg.c,v $ * Revision 1.3  2001/12/06 18:27:14  josh * fix include paths for tae_sa.h * * Revision 1.2  2001/11/06 21:20:41  josh * revised new path hacking * * Revision 1.1.1.1  2001/11/05 17:47:50  tneale * Tornado shuffle * * Revision 1.2  2001/04/16 19:38:44  josh * merging the kingfisher branch onto the trunk * * Revision 1.1.2.2  2001/03/12 22:11:37  tneale * Updated copyright * * Revision 1.1.2.1  2001/02/09 22:49:59  tneale * Support file for using the Test Table MIB in a TAE non-kernel protection domain. * * *//* Includes */ #include <wrn/wm/snmp/engine/objectid.h>#include <wrn/wm/snmp/engine/mib.h>#include <wrn/wm/snmp/vxagent/tae_sa.h>/* Externs */extern MIBNODE_T axsub_root_node; /* Locals */OBJ_ID_T my_mib_subtrees[5];                                                              /********************************************************************************* get_mib_registration_subtrees - Get the MIB subtrees for this subagent to *                                 register support with the kernel SNMP agent.** RETURNS: Pointer to array of OBJ_ID_T.  Last subtree is followed by*          an OBJ_ID_T with o components and NULL pointer.*/OBJ_ID_T *get_mib_registration_subtrees (void){	OIDC_T	oidc1[40] = {1, 3, 6, 1, 4, 1, 12, 9, 1, 1, 2, 0};	OIDC_T	oidc2[40] = {1, 3, 6, 1, 4, 1, 12, 9, 1, 1, 5, 0};	if (build_object_id (11, oidc2, &my_mib_subtrees[0]) != 0)	{		printf ("\nFailed to attach even one subtree.");		my_mib_subtrees[0].num_components = 0;		my_mib_subtrees[0].component_list = (OIDC_T *)0;	}	if (build_object_id (11, oidc1, &my_mib_subtrees[1]) != 0)	{		printf ("\nFailed to attach even one subtree.");		my_mib_subtrees[0].num_components = 0;		my_mib_subtrees[0].component_list = (OIDC_T *)0;	}	my_mib_subtrees[3].num_components = 0;	my_mib_subtrees[3].component_list = (OIDC_T *)0;	return (my_mib_subtrees);}/********************************************************************************* initialize_mib - Initialize the user provided MIB.  This function also*                  starts the subagent functioning needed to support*                  communication with the SNMP agent in the kernel.** RETURNS: OK (always)*/int initialize_mib (void){	usrTaeSaInit();	return (0);}/********************************************************************************* get_mib_root_node - Get a pointer to the root of the local MIB tree** RETURNS: MIBNODE_T **/MIBNODE_T *get_mib_root_node (void){	return (&axsub_root_node);}

⌨️ 快捷键说明

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