Files
m241Neelima/vxworks-6.9/target/src/wrn/wm/demo/lib/nvviews.c
T
2026-07-30 11:19:44 +05:30

110 lines
3.2 KiB
C

/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/lib/nvviews.c,v 1.3 2003/01/15 14:04:33 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 1995-1997 Epilogue Technology Corporation.
* Copyright 1998 Integrated Systems, Inc.
* All rights reserved.
****************************************************************************/
/*
* $Log: nvviews.c,v $
* Revision 1.3 2003/01/15 14:04:33 josh
* directory structure shifting
*
* Revision 1.2 2001/11/08 15:56:24 tneale
* Updated for newest file layout
*
* Revision 1.1.1.1 2001/11/05 17:48:42 tneale
* Tornado shuffle
*
* Revision 7.9 2001/01/19 22:23:47 paul
* Update copyright.
*
* Revision 7.8 2000/03/17 00:12:42 meister
* Update copyright message
*
* Revision 7.7 1998/06/18 04:18:37 sar
* Update the view indexes to match the new structure
*
* 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/common/install.h>
#include <wrn/wm/snmp/engine/asn1conf.h>
#if INSTALL_ENVOY_SNMP_DYNAMIC_VIEWS
#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 = {vtwo, 3, 0, &vleaf2_1, &vleaf2_1};
static VIEWINDEX_T vindex1 = {vone, 3, &vindex2, &vleaf1_1, &vleaf1_1};
#endif
VIEWINDEX_T *precomp_viewroot = &vindex1;
#endif