]> git.stg.codes - stg.git/blob - stglibs/smux.lib/VarBind.c
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / smux.lib / VarBind.c
1 /*
2  * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1157-SNMP"
4  *      found in "RFC1157-SNMP.asn1"
5  *      `asn1c -fskeletons-copy`
6  */
7
8 #include <asn_internal.h>
9
10 #include "VarBind.h"
11
12 static asn_TYPE_member_t asn_MBR_VarBind_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct VarBind, name),
14                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
15                 0,
16                 &asn_DEF_ObjectName,
17                 0,      /* Defer constraints checking to the member type */
18                 0,      /* PER is not compiled, use -gen-PER */
19                 0,
20                 "name"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct VarBind, value),
23                 -1 /* Ambiguous tag (CHOICE?) */,
24                 0,
25                 &asn_DEF_ObjectSyntax,
26                 0,      /* Defer constraints checking to the member type */
27                 0,      /* PER is not compiled, use -gen-PER */
28                 0,
29                 "value"
30                 },
31 };
32 static ber_tlv_tag_t asn_DEF_VarBind_tags_1[] = {
33         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
34 };
35 static asn_TYPE_tag2member_t asn_MAP_VarBind_tag2el_1[] = {
36     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* number at 73 */
37     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string at 76 */
38     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 1, 0, 0 }, /* empty at 82 */
39     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 1 }, /* name at 133 */
40     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, -1, 0 }, /* object at 79 */
41     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet at 113 */
42     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter at 91 */
43     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 1, 0, 0 }, /* gauge at 94 */
44     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 1, 0, 0 }, /* ticks at 97 */
45     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 1, 0, 0 } /* arbitrary at 104 */
46 };
47 static asn_SEQUENCE_specifics_t asn_SPC_VarBind_specs_1 = {
48         sizeof(struct VarBind),
49         offsetof(struct VarBind, _asn_ctx),
50         asn_MAP_VarBind_tag2el_1,
51         10,     /* Count of tags in the map */
52         0, 0, 0,        /* Optional elements (not needed) */
53         -1,     /* Start extensions */
54         -1      /* Stop extensions */
55 };
56 asn_TYPE_descriptor_t asn_DEF_VarBind = {
57         "VarBind",
58         "VarBind",
59         SEQUENCE_free,
60         SEQUENCE_print,
61         SEQUENCE_constraint,
62         SEQUENCE_decode_ber,
63         SEQUENCE_encode_der,
64         SEQUENCE_decode_xer,
65         SEQUENCE_encode_xer,
66         0, 0,   /* No PER support, use "-gen-PER" to enable */
67         0,      /* Use generic outmost tag fetcher */
68         asn_DEF_VarBind_tags_1,
69         sizeof(asn_DEF_VarBind_tags_1)
70                 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
71         asn_DEF_VarBind_tags_1, /* Same as above */
72         sizeof(asn_DEF_VarBind_tags_1)
73                 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
74         0,      /* No PER visible constraints */
75         asn_MBR_VarBind_1,
76         2,      /* Elements count */
77         &asn_SPC_VarBind_specs_1        /* Additional specs */
78 };
79