]> git.stg.codes - stg.git/blob - stglibs/smux.lib/IpRouteEntry.c
Version bump
[stg.git] / stglibs / smux.lib / IpRouteEntry.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 "IpRouteEntry.h"
11
12 static asn_TYPE_member_t asn_MBR_IpRouteEntry_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteDest),
14                 (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
15                 0,
16                 &asn_DEF_IpAddress,
17                 0,      /* Defer constraints checking to the member type */
18                 0,      /* PER is not compiled, use -gen-PER */
19                 0,
20                 "ipRouteDest"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteIfIndex),
23                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
24                 0,
25                 &asn_DEF_INTEGER,
26                 0,      /* Defer constraints checking to the member type */
27                 0,      /* PER is not compiled, use -gen-PER */
28                 0,
29                 "ipRouteIfIndex"
30                 },
31         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMetric1),
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                 "ipRouteMetric1"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMetric2),
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                 "ipRouteMetric2"
48                 },
49         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMetric3),
50                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
51                 0,
52                 &asn_DEF_INTEGER,
53                 0,      /* Defer constraints checking to the member type */
54                 0,      /* PER is not compiled, use -gen-PER */
55                 0,
56                 "ipRouteMetric3"
57                 },
58         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMetric4),
59                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
60                 0,
61                 &asn_DEF_INTEGER,
62                 0,      /* Defer constraints checking to the member type */
63                 0,      /* PER is not compiled, use -gen-PER */
64                 0,
65                 "ipRouteMetric4"
66                 },
67         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteNextHop),
68                 (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
69                 0,
70                 &asn_DEF_IpAddress,
71                 0,      /* Defer constraints checking to the member type */
72                 0,      /* PER is not compiled, use -gen-PER */
73                 0,
74                 "ipRouteNextHop"
75                 },
76         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteType),
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                 "ipRouteType"
84                 },
85         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteProto),
86                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
87                 0,
88                 &asn_DEF_INTEGER,
89                 0,      /* Defer constraints checking to the member type */
90                 0,      /* PER is not compiled, use -gen-PER */
91                 0,
92                 "ipRouteProto"
93                 },
94         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteAge),
95                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
96                 0,
97                 &asn_DEF_INTEGER,
98                 0,      /* Defer constraints checking to the member type */
99                 0,      /* PER is not compiled, use -gen-PER */
100                 0,
101                 "ipRouteAge"
102                 },
103         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMask),
104                 (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
105                 0,
106                 &asn_DEF_IpAddress,
107                 0,      /* Defer constraints checking to the member type */
108                 0,      /* PER is not compiled, use -gen-PER */
109                 0,
110                 "ipRouteMask"
111                 },
112         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteMetric5),
113                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
114                 0,
115                 &asn_DEF_INTEGER,
116                 0,      /* Defer constraints checking to the member type */
117                 0,      /* PER is not compiled, use -gen-PER */
118                 0,
119                 "ipRouteMetric5"
120                 },
121         { ATF_NOFLAGS, 0, offsetof(struct IpRouteEntry, ipRouteInfo),
122                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
123                 0,
124                 &asn_DEF_OBJECT_IDENTIFIER,
125                 0,      /* Defer constraints checking to the member type */
126                 0,      /* PER is not compiled, use -gen-PER */
127                 0,
128                 "ipRouteInfo"
129                 },
130 };
131 static ber_tlv_tag_t asn_DEF_IpRouteEntry_tags_1[] = {
132         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
133 };
134 static asn_TYPE_tag2member_t asn_MAP_IpRouteEntry_tag2el_1[] = {
135     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 8 }, /* ipRouteIfIndex at 192 */
136     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 7 }, /* ipRouteMetric1 at 194 */
137     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -2, 6 }, /* ipRouteMetric2 at 196 */
138     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -3, 5 }, /* ipRouteMetric3 at 198 */
139     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 5, -4, 4 }, /* ipRouteMetric4 at 200 */
140     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 7, -5, 3 }, /* ipRouteType at 204 */
141     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 8, -6, 2 }, /* ipRouteProto at 206 */
142     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 9, -7, 1 }, /* ipRouteAge at 208 */
143     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 11, -8, 0 }, /* ipRouteMetric5 at 212 */
144     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 12, 0, 0 }, /* ipRouteInfo at 215 */
145     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 2 }, /* ipRouteDest at 190 */
146     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 6, -1, 1 }, /* ipRouteNextHop at 202 */
147     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 10, -2, 0 } /* ipRouteMask at 210 */
148 };
149 static asn_SEQUENCE_specifics_t asn_SPC_IpRouteEntry_specs_1 = {
150         sizeof(struct IpRouteEntry),
151         offsetof(struct IpRouteEntry, _asn_ctx),
152         asn_MAP_IpRouteEntry_tag2el_1,
153         13,     /* Count of tags in the map */
154         0, 0, 0,        /* Optional elements (not needed) */
155         -1,     /* Start extensions */
156         -1      /* Stop extensions */
157 };
158 asn_TYPE_descriptor_t asn_DEF_IpRouteEntry = {
159         "IpRouteEntry",
160         "IpRouteEntry",
161         SEQUENCE_free,
162         SEQUENCE_print,
163         SEQUENCE_constraint,
164         SEQUENCE_decode_ber,
165         SEQUENCE_encode_der,
166         SEQUENCE_decode_xer,
167         SEQUENCE_encode_xer,
168         0, 0,   /* No PER support, use "-gen-PER" to enable */
169         0,      /* Use generic outmost tag fetcher */
170         asn_DEF_IpRouteEntry_tags_1,
171         sizeof(asn_DEF_IpRouteEntry_tags_1)
172                 /sizeof(asn_DEF_IpRouteEntry_tags_1[0]), /* 1 */
173         asn_DEF_IpRouteEntry_tags_1,    /* Same as above */
174         sizeof(asn_DEF_IpRouteEntry_tags_1)
175                 /sizeof(asn_DEF_IpRouteEntry_tags_1[0]), /* 1 */
176         0,      /* No PER visible constraints */
177         asn_MBR_IpRouteEntry_1,
178         13,     /* Elements count */
179         &asn_SPC_IpRouteEntry_specs_1   /* Additional specs */
180 };
181