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