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

📄 nvviews.c

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 C
字号:
/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/snmptalk/nvviews.c,v 1.2 2001/11/08 16:47:28 tneale 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 1995-1997 Epilogue Technology Corporation. *  Copyright 1998 Integrated Systems, Inc. *  All rights reserved. ****************************************************************************//* * $Log: nvviews.c,v $ * Revision 1.2  2001/11/08 16:47:28  tneale * Updated for newset file layout * * Revision 1.1.1.1  2001/11/05 17:49:12  tneale * Tornado shuffle * * Revision 7.8  2001/01/19 22:24:48  paul * Update copyright. * * Revision 7.7  2000/03/17 00:14:34  meister * Update copyright message * * Revision 7.6  1998/05/23 18:35:23  sar * Added an installation for rfc2275 as well as rfc1445 * * Revision 7.5  1998/02/25 04:58:00  sra * Update copyrights. * * Revision 7.4  1997/03/20 06:53:52  sra * DFARS-safe copyright text.  Zap! * * Revision 7.3  1997/02/25 10:58:16  sra * Update copyright notice, dust under the bed. * * Revision 7.2  1997/01/08 23:26:53  sar * Updated include files to use envoy/h as appropriate after * move from envoy/utils to snark/snmptalk * * Revision 7.1  1997/01/08  01:58:11  sar * Removed no_pp stuff and updated copyrights * * Revision 7.0  1996/03/18  20:19:20  sar * Updated rev to 7.0 and copyright to 96 * * Revision 1.1  1995/11/11  00:09:41  sar * Initial revision * * *//* [clearcase]modification history-------------------01a,19apr05,job  update copyright notices*/#include <wrn/wm/snmp/engine/view.h>extern VIEWINDEX_T vindex1;extern VIEWINDEX_T vindex2;/* viewleaf_t = index, subtree, mask, type, status, storage,   lexinext, masknext */static OIDC_T oid_1_1[] = {1, 3, 6};static OIDC_T oid_2_1[] = {1, 3, 6, 1, 2, 1, 1};static VIEWLEAF_T vleaf1_1 = {&vindex1, 1, {3, oid_1_1}, {0, 0, 0, 0}, 1, 1, 3, 0, 0};static VIEWLEAF_T vleaf2_1 = {&vindex2, 2, {7, oid_2_1}, {0, 0, 0, 0}, 1, 1, 3, 0, 0};#if (INSTALL_ENVOY_SNMP_RFC1445_VIEWS)/* viewindex_t = index, next viewindex, lexi leaves, mask leaves, quickmask */static VIEWINDEX_T vindex2 = {2, 0, &vleaf2_1, &vleaf2_1};static VIEWINDEX_T vindex1 = {1, &vindex2, &vleaf1_1, &vleaf1_1};#endif#if (INSTALL_ENVOY_SNMP_RFC2275_VIEWS)/* viewindex_t = name, next viewindex, lexi leaves, mask leaves, quickmask */static bits8_t vone[] = "one";static bits8_t vtwo[] = "two";static VIEWINDEX_T vindex2 = {{0, vtwo, vtwo + 3, 0},			      0, &vleaf2_1, &vleaf2_1};static VIEWINDEX_T vindex1 = {{0, vone, vone + 3, 0 },			      &vindex2, &vleaf1_1, &vleaf1_1};#endifVIEWINDEX_T *precomp_viewroot = &vindex1;

⌨️ 快捷键说明

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