]> git.stg.codes - stg.git/blob - libs/smux/ApplicationSyntax.c
Use async-radius.
[stg.git] / libs / smux / ApplicationSyntax.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1155-SMI"
4  *      found in "RFC1155-SMI.asn1"
5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
6  */
7
8 #include "ApplicationSyntax.h"
9
10 static asn_oer_constraints_t asn_OER_type_ApplicationSyntax_constr_1 CC_NOTUSED = {
11         { 0, 0 },
12         -1};
13 asn_per_constraints_t asn_PER_type_ApplicationSyntax_constr_1 CC_NOTUSED = {
14         { APC_CONSTRAINED,       3,  3,  0,  4 }        /* (0..4) */,
15         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
16         0, 0    /* No PER value map */
17 };
18 asn_TYPE_member_t asn_MBR_ApplicationSyntax_1[] = {
19         { ATF_NOFLAGS, 0, offsetof(struct ApplicationSyntax, choice.address),
20                 -1 /* Ambiguous tag (CHOICE?) */,
21                 0,
22                 &asn_DEF_NetworkAddress,
23                 0,
24                 { 0, 0, 0 },
25                 0, 0, /* No default value */
26                 "address"
27                 },
28         { ATF_NOFLAGS, 0, offsetof(struct ApplicationSyntax, choice.counter),
29                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
30                 0,
31                 &asn_DEF_Counter,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "counter"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct ApplicationSyntax, choice.gauge),
38                 (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
39                 0,
40                 &asn_DEF_Gauge,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "gauge"
45                 },
46         { ATF_NOFLAGS, 0, offsetof(struct ApplicationSyntax, choice.ticks),
47                 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
48                 0,
49                 &asn_DEF_TimeTicks,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "ticks"
54                 },
55         { ATF_NOFLAGS, 0, offsetof(struct ApplicationSyntax, choice.arbitrary),
56                 (ASN_TAG_CLASS_APPLICATION | (4 << 2)),
57                 0,
58                 &asn_DEF_Opaque,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 "arbitrary"
63                 },
64 };
65 static const asn_TYPE_tag2member_t asn_MAP_ApplicationSyntax_tag2el_1[] = {
66     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* internet */
67     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter */
68     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* gauge */
69     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 }, /* ticks */
70     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 4, 0, 0 } /* arbitrary */
71 };
72 asn_CHOICE_specifics_t asn_SPC_ApplicationSyntax_specs_1 = {
73         sizeof(struct ApplicationSyntax),
74         offsetof(struct ApplicationSyntax, _asn_ctx),
75         offsetof(struct ApplicationSyntax, present),
76         sizeof(((struct ApplicationSyntax *)0)->present),
77         asn_MAP_ApplicationSyntax_tag2el_1,
78         5,      /* Count of tags in the map */
79         0, 0,
80         -1      /* Extensions start */
81 };
82 asn_TYPE_descriptor_t asn_DEF_ApplicationSyntax = {
83         "ApplicationSyntax",
84         "ApplicationSyntax",
85         &asn_OP_CHOICE,
86         0,      /* No effective tags (pointer) */
87         0,      /* No effective tags (count) */
88         0,      /* No tags (pointer) */
89         0,      /* No tags (count) */
90         { &asn_OER_type_ApplicationSyntax_constr_1, &asn_PER_type_ApplicationSyntax_constr_1, CHOICE_constraint },
91         asn_MBR_ApplicationSyntax_1,
92         5,      /* Elements count */
93         &asn_SPC_ApplicationSyntax_specs_1      /* Additional specs */
94 };
95