]> git.stg.codes - stg.git/blob - libs/smux/IfEntry.c
Update SMUX library.
[stg.git] / libs / smux / IfEntry.c
1 /*
2  * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1213-MIB"
4  *      found in "RFC1213-MIB.asn1"
5  *      `asn1c -S/mnt/data/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,      /* Defer constraints checking to the member type */
16                 0,      /* PER is not compiled, use -gen-PER */
17                 0,
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,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
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,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
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,      /* Defer constraints checking to the member type */
43                 0,      /* PER is not compiled, use -gen-PER */
44                 0,
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,      /* Defer constraints checking to the member type */
52                 0,      /* PER is not compiled, use -gen-PER */
53                 0,
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,      /* Defer constraints checking to the member type */
61                 0,      /* PER is not compiled, use -gen-PER */
62                 0,
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,      /* Defer constraints checking to the member type */
70                 0,      /* PER is not compiled, use -gen-PER */
71                 0,
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,      /* Defer constraints checking to the member type */
79                 0,      /* PER is not compiled, use -gen-PER */
80                 0,
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,      /* Defer constraints checking to the member type */
88                 0,      /* PER is not compiled, use -gen-PER */
89                 0,
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,      /* Defer constraints checking to the member type */
97                 0,      /* PER is not compiled, use -gen-PER */
98                 0,
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,      /* Defer constraints checking to the member type */
106                 0,      /* PER is not compiled, use -gen-PER */
107                 0,
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,      /* Defer constraints checking to the member type */
115                 0,      /* PER is not compiled, use -gen-PER */
116                 0,
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,      /* Defer constraints checking to the member type */
124                 0,      /* PER is not compiled, use -gen-PER */
125                 0,
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,      /* Defer constraints checking to the member type */
133                 0,      /* PER is not compiled, use -gen-PER */
134                 0,
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,      /* Defer constraints checking to the member type */
142                 0,      /* PER is not compiled, use -gen-PER */
143                 0,
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,      /* Defer constraints checking to the member type */
151                 0,      /* PER is not compiled, use -gen-PER */
152                 0,
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,      /* Defer constraints checking to the member type */
160                 0,      /* PER is not compiled, use -gen-PER */
161                 0,
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,      /* Defer constraints checking to the member type */
169                 0,      /* PER is not compiled, use -gen-PER */
170                 0,
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,      /* Defer constraints checking to the member type */
178                 0,      /* PER is not compiled, use -gen-PER */
179                 0,
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,      /* Defer constraints checking to the member type */
187                 0,      /* PER is not compiled, use -gen-PER */
188                 0,
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,      /* Defer constraints checking to the member type */
196                 0,      /* PER is not compiled, use -gen-PER */
197                 0,
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,      /* Defer constraints checking to the member type */
205                 0,      /* PER is not compiled, use -gen-PER */
206                 0,
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,     /* Start extensions */
244         -1      /* Stop extensions */
245 };
246 asn_TYPE_descriptor_t asn_DEF_IfEntry = {
247         "IfEntry",
248         "IfEntry",
249         SEQUENCE_free,
250         SEQUENCE_print,
251         SEQUENCE_constraint,
252         SEQUENCE_decode_ber,
253         SEQUENCE_encode_der,
254         SEQUENCE_decode_xer,
255         SEQUENCE_encode_xer,
256         0, 0,   /* No PER support, use "-gen-PER" to enable */
257         0,      /* Use generic outmost tag fetcher */
258         asn_DEF_IfEntry_tags_1,
259         sizeof(asn_DEF_IfEntry_tags_1)
260                 /sizeof(asn_DEF_IfEntry_tags_1[0]), /* 1 */
261         asn_DEF_IfEntry_tags_1, /* Same as above */
262         sizeof(asn_DEF_IfEntry_tags_1)
263                 /sizeof(asn_DEF_IfEntry_tags_1[0]), /* 1 */
264         0,      /* No PER visible constraints */
265         asn_MBR_IfEntry_1,
266         22,     /* Elements count */
267         &asn_SPC_IfEntry_specs_1        /* Additional specs */
268 };
269