]> git.stg.codes - stg.git/blob - stglibs/smux.lib/IfEntry.c
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / smux.lib / IfEntry.c
1 /*
2  * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1213-MIB"
4  *      found in "RFC1213-MIB.asn1"
5  *      `asn1c -fskeletons-copy`
6  */
7
8 #include <asn_internal.h>
9
10 #include "IfEntry.h"
11
12 static asn_TYPE_member_t asn_MBR_IfEntry_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifIndex),
14                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
15                 0,
16                 &asn_DEF_INTEGER,
17                 0,      /* Defer constraints checking to the member type */
18                 0,      /* PER is not compiled, use -gen-PER */
19                 0,
20                 "ifIndex"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifDescr),
23                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
24                 0,
25                 &asn_DEF_DisplayString,
26                 0,      /* Defer constraints checking to the member type */
27                 0,      /* PER is not compiled, use -gen-PER */
28                 0,
29                 "ifDescr"
30                 },
31         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifType),
32                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
33                 0,
34                 &asn_DEF_INTEGER,
35                 0,      /* Defer constraints checking to the member type */
36                 0,      /* PER is not compiled, use -gen-PER */
37                 0,
38                 "ifType"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifMtu),
41                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
42                 0,
43                 &asn_DEF_INTEGER,
44                 0,      /* Defer constraints checking to the member type */
45                 0,      /* PER is not compiled, use -gen-PER */
46                 0,
47                 "ifMtu"
48                 },
49         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifSpeed),
50                 (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
51                 0,
52                 &asn_DEF_Gauge,
53                 0,      /* Defer constraints checking to the member type */
54                 0,      /* PER is not compiled, use -gen-PER */
55                 0,
56                 "ifSpeed"
57                 },
58         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifPhysAddress),
59                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
60                 0,
61                 &asn_DEF_PhysAddress,
62                 0,      /* Defer constraints checking to the member type */
63                 0,      /* PER is not compiled, use -gen-PER */
64                 0,
65                 "ifPhysAddress"
66                 },
67         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifAdminStatus),
68                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
69                 0,
70                 &asn_DEF_INTEGER,
71                 0,      /* Defer constraints checking to the member type */
72                 0,      /* PER is not compiled, use -gen-PER */
73                 0,
74                 "ifAdminStatus"
75                 },
76         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOperStatus),
77                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
78                 0,
79                 &asn_DEF_INTEGER,
80                 0,      /* Defer constraints checking to the member type */
81                 0,      /* PER is not compiled, use -gen-PER */
82                 0,
83                 "ifOperStatus"
84                 },
85         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifLastChange),
86                 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
87                 0,
88                 &asn_DEF_TimeTicks,
89                 0,      /* Defer constraints checking to the member type */
90                 0,      /* PER is not compiled, use -gen-PER */
91                 0,
92                 "ifLastChange"
93                 },
94         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInOctets),
95                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
96                 0,
97                 &asn_DEF_Counter,
98                 0,      /* Defer constraints checking to the member type */
99                 0,      /* PER is not compiled, use -gen-PER */
100                 0,
101                 "ifInOctets"
102                 },
103         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInUcastPkts),
104                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
105                 0,
106                 &asn_DEF_Counter,
107                 0,      /* Defer constraints checking to the member type */
108                 0,      /* PER is not compiled, use -gen-PER */
109                 0,
110                 "ifInUcastPkts"
111                 },
112         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInNUcastPkts),
113                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
114                 0,
115                 &asn_DEF_Counter,
116                 0,      /* Defer constraints checking to the member type */
117                 0,      /* PER is not compiled, use -gen-PER */
118                 0,
119                 "ifInNUcastPkts"
120                 },
121         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInDiscards),
122                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
123                 0,
124                 &asn_DEF_Counter,
125                 0,      /* Defer constraints checking to the member type */
126                 0,      /* PER is not compiled, use -gen-PER */
127                 0,
128                 "ifInDiscards"
129                 },
130         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInErrors),
131                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
132                 0,
133                 &asn_DEF_Counter,
134                 0,      /* Defer constraints checking to the member type */
135                 0,      /* PER is not compiled, use -gen-PER */
136                 0,
137                 "ifInErrors"
138                 },
139         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifInUnknownProtos),
140                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
141                 0,
142                 &asn_DEF_Counter,
143                 0,      /* Defer constraints checking to the member type */
144                 0,      /* PER is not compiled, use -gen-PER */
145                 0,
146                 "ifInUnknownProtos"
147                 },
148         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutOctets),
149                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
150                 0,
151                 &asn_DEF_Counter,
152                 0,      /* Defer constraints checking to the member type */
153                 0,      /* PER is not compiled, use -gen-PER */
154                 0,
155                 "ifOutOctets"
156                 },
157         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutUcastPkts),
158                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
159                 0,
160                 &asn_DEF_Counter,
161                 0,      /* Defer constraints checking to the member type */
162                 0,      /* PER is not compiled, use -gen-PER */
163                 0,
164                 "ifOutUcastPkts"
165                 },
166         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutNUcastPkts),
167                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
168                 0,
169                 &asn_DEF_Counter,
170                 0,      /* Defer constraints checking to the member type */
171                 0,      /* PER is not compiled, use -gen-PER */
172                 0,
173                 "ifOutNUcastPkts"
174                 },
175         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutDiscards),
176                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
177                 0,
178                 &asn_DEF_Counter,
179                 0,      /* Defer constraints checking to the member type */
180                 0,      /* PER is not compiled, use -gen-PER */
181                 0,
182                 "ifOutDiscards"
183                 },
184         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutErrors),
185                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
186                 0,
187                 &asn_DEF_Counter,
188                 0,      /* Defer constraints checking to the member type */
189                 0,      /* PER is not compiled, use -gen-PER */
190                 0,
191                 "ifOutErrors"
192                 },
193         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifOutQLen),
194                 (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
195                 0,
196                 &asn_DEF_Gauge,
197                 0,      /* Defer constraints checking to the member type */
198                 0,      /* PER is not compiled, use -gen-PER */
199                 0,
200                 "ifOutQLen"
201                 },
202         { ATF_NOFLAGS, 0, offsetof(struct IfEntry, ifSpecific),
203                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
204                 0,
205                 &asn_DEF_OBJECT_IDENTIFIER,
206                 0,      /* Defer constraints checking to the member type */
207                 0,      /* PER is not compiled, use -gen-PER */
208                 0,
209                 "ifSpecific"
210                 },
211 };
212 static ber_tlv_tag_t asn_DEF_IfEntry_tags_1[] = {
213         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
214 };
215 static asn_TYPE_tag2member_t asn_MAP_IfEntry_tag2el_1[] = {
216     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 4 }, /* ifIndex at 78 */
217     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 3 }, /* ifType at 83 */
218     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -2, 2 }, /* ifMtu at 85 */
219     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 6, -3, 1 }, /* ifAdminStatus at 91 */
220     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 7, -4, 0 }, /* ifOperStatus at 93 */
221     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 1 }, /* ifDescr at 81 */
222     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 5, -1, 0 }, /* ifPhysAddress at 89 */
223     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 21, 0, 0 }, /* ifSpecific at 121 */
224     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 9, 0, 10 }, /* ifInOctets at 97 */
225     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 10, -1, 9 }, /* ifInUcastPkts at 99 */
226     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 11, -2, 8 }, /* ifInNUcastPkts at 101 */
227     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 12, -3, 7 }, /* ifInDiscards at 103 */
228     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 13, -4, 6 }, /* ifInErrors at 105 */
229     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 14, -5, 5 }, /* ifInUnknownProtos at 107 */
230     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 15, -6, 4 }, /* ifOutOctets at 109 */
231     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 16, -7, 3 }, /* ifOutUcastPkts at 111 */
232     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 17, -8, 2 }, /* ifOutNUcastPkts at 113 */
233     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 18, -9, 1 }, /* ifOutDiscards at 115 */
234     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 19, -10, 0 }, /* ifOutErrors at 117 */
235     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 4, 0, 1 }, /* ifSpeed at 87 */
236     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 20, -1, 0 }, /* ifOutQLen at 119 */
237     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 8, 0, 0 } /* ifLastChange at 95 */
238 };
239 static asn_SEQUENCE_specifics_t asn_SPC_IfEntry_specs_1 = {
240         sizeof(struct IfEntry),
241         offsetof(struct IfEntry, _asn_ctx),
242         asn_MAP_IfEntry_tag2el_1,
243         22,     /* Count of tags in the map */
244         0, 0, 0,        /* Optional elements (not needed) */
245         -1,     /* Start extensions */
246         -1      /* Stop extensions */
247 };
248 asn_TYPE_descriptor_t asn_DEF_IfEntry = {
249         "IfEntry",
250         "IfEntry",
251         SEQUENCE_free,
252         SEQUENCE_print,
253         SEQUENCE_constraint,
254         SEQUENCE_decode_ber,
255         SEQUENCE_encode_der,
256         SEQUENCE_decode_xer,
257         SEQUENCE_encode_xer,
258         0, 0,   /* No PER support, use "-gen-PER" to enable */
259         0,      /* Use generic outmost tag fetcher */
260         asn_DEF_IfEntry_tags_1,
261         sizeof(asn_DEF_IfEntry_tags_1)
262                 /sizeof(asn_DEF_IfEntry_tags_1[0]), /* 1 */
263         asn_DEF_IfEntry_tags_1, /* Same as above */
264         sizeof(asn_DEF_IfEntry_tags_1)
265                 /sizeof(asn_DEF_IfEntry_tags_1[0]), /* 1 */
266         0,      /* No PER visible constraints */
267         asn_MBR_IfEntry_1,
268         22,     /* Elements count */
269         &asn_SPC_IfEntry_specs_1        /* Additional specs */
270 };
271