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