📄 viewinit.c
字号:
/* * Copyright 2000-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 1994-1997 Epilogue Technology Corporation. * Copyright 1998 Integrated Systems, Inc. * All rights reserved. *//* * $Log: viewinit.c,v $ * Revision 1.2 2001/11/06 21:20:39 josh * revised new path hacking * * Revision 1.1.1.1 2001/11/05 17:47:45 tneale * Tornado shuffle * * Revision 9.1 2000/03/17 00:19:55 meister * Update copyright message * * Revision 9.0 1998/10/16 22:12:59 sar * Update version stamp to match release * * Revision 8.2 1998/06/05 18:53:33 sra * "#include <foo.h>" => "#include <envoy/h/foo.h>". * * Revision 8.1 1998/02/25 04:53:38 sra * Update copyrights. * * Revision 8.0 1997/11/18 00:57:15 sar * Updated revision to 8.0 * * Revision 7.2 1997/03/20 06:49:45 sra * DFARS-safe copyright text. Zap! * * Revision 7.1 1997/02/25 10:49:26 sra * Update copyright notice, dust under the bed. * * Revision 7.0 1996/03/18 20:24:05 sar * Updated rev to 7.0 and copyright to 96 * * Revision 1.2 1995/11/15 19:56:05 sar * Removed use of rfc1445_view_routines install option * * Revision 1.1 1995/11/01 00:44:39 sar * Initial revision * * Revision 6.0 1995/05/31 21:49:31 sra * Release 6.0. * * Revision 1.2 1994/10/28 19:43:29 sar * Split the v2 view stuff from the rest of the party stuff so it can * be used in a v1 setting. * * Revision 1.1 1994/07/19 19:29:32 sar * Initial revision * *//* [clearcase]modification history-------------------01b,19apr05,job update copyright notices01a,24nov03,job update copyright information*//* This routine will install a set of inital values into the party database for use with a v2 system. */#include <stdio.h>#include <wrn/wm/snmp/engine/snmp.h>#include <wrn/wm/snmp/engine/view.h>#include <wrn/wm/snmp/engine/wkobj.h>/* Install 1 view, viewfamily 1 with a view of the internet sub tree */static OIDC_T view1oidc[] = {1, 3, 6 };static int view1len = 3;void rfc1445_view_init(void){VIEWLEAF_T *view;view = SNMP_View_Create(view1oidc, view1len);if (view == 0) { printf("Error populating the party database, aborting the test\n"); exit(1); }SNMP_View_Set_Status(view, RS_ACTIVE);SNMP_View_Install(1, view);return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -