xref: /freebsd/contrib/bsnmp/snmp_usm/usm_tree.def (revision 59e2ff550c448126b988150ce800cdf73bb5103e)
1#-
2# Copyright (C) 2010 The FreeBSD Foundation
3# All rights reserved.
4#
5# This software was developed by Shteryana Sotirova Shopova under
6# sponsorship from the FreeBSD Foundation.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#   documentation and/or other materials provided with the distribution.
16#
17# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20# ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
21# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27# SUCH DAMAGE.
28#
29# $FreeBSD$
30#
31
32#include "tc.def"
33
34typedef RowStatus ENUM (
35	1 active
36	2 notInService
37	3 notReady
38	4 createAndGo
39	5 createAndWait
40	6 destroy
41)
42
43typedef StorageType ENUM (
44	1 other
45	2 volatile
46	3 nonVolatile
47	4 permanent
48	5 readOnly
49)
50
51(1 internet
52  (6 snmpV2
53    (3 snmpModules
54      (10 snmpFrameworkMIB
55        (1 snmpFrameworkAdmin
56          (1 snmpAuthProtocols
57            (1 usmNoAuthProtocol
58            )
59            (2 usmHMACMD5AuthProtocol
60            )
61            (3 usmHMACSHAAuthProtocol
62            )
63          )
64          (2 snmpPrivProtocols
65            (1 usmNoPrivProtocol
66            )
67            (2 usmDESPrivProtocol
68            )
69            (4 usmAesCfb128Protocol
70            )
71          )
72        )
73      )
74      (15 snmpUsmMIB
75        (1 usmMIBObjects
76          (1 usmStats
77            (1 usmStatsUnsupportedSecLevels COUNTER op_usm_stats GET)
78            (2 usmStatsNotInTimeWindows COUNTER op_usm_stats GET)
79            (3 usmStatsUnknownUserNames COUNTER op_usm_stats GET)
80            (4 usmStatsUnknownEngineIDs COUNTER op_usm_stats GET)
81            (5 usmStatsWrongDigests COUNTER op_usm_stats GET)
82            (6 usmStatsDecryptionErrors COUNTER op_usm_stats GET)
83          )
84          (2 usmUser
85            (1 usmUserSpinLock INTEGER op_usm_lock GET SET)
86            (2 usmUserTable
87              (1 usmUserEntry : OCTETSTRING | SnmpEngineID OCTETSTRING op_usm_users
88                (1 usmUserEngineID OCTETSTRING | SnmpEngineID)
89                (2 usmUserName OCTETSTRING)
90                (3 usmUserSecurityName OCTETSTRING | SnmpAdminString GET)
91                (4 usmUserCloneFrom OID GET SET)
92                (5 usmUserAuthProtocol OID GET SET)
93                (6 usmUserAuthKeyChange OCTETSTRING | KeyChange GET SET)
94                (7 usmUserOwnAuthKeyChange OCTETSTRING | KeyChange GET SET)
95                (8 usmUserPrivProtocol OID GET SET)
96                (9 usmUserPrivKeyChange OCTETSTRING | KeyChange GET SET)
97                (10 usmUserOwnPrivKeyChange OCTETSTRING | KeyChange GET SET)
98                (11 usmUserPublic OCTETSTRING GET SET)
99                (12 usmUserStorageType StorageType GET SET)
100                (13 usmUserStatus RowStatus GET SET)
101              )
102            )
103          )
104        )
105      )
106      (20 snmpUsmAesMIB
107      )
108    )
109  )
110)
111
112