]> git.stg.codes - stg.git/blob - libs/smux/PDU.c
Regen SMUX support library with more recent ASN1 compiler.
[stg.git] / libs / smux / PDU.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1157-SNMP"
4  *      found in "RFC1157-SNMP.asn1"
5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
6  */
7
8 #include "PDU.h"
9
10 asn_TYPE_member_t asn_MBR_PDU_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct PDU, request_id),
12                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
13                 0,
14                 &asn_DEF_INTEGER,
15                 0,
16                 { 0, 0, 0 },
17                 0, 0, /* No default value */
18                 "request-id"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct PDU, error_status),
21                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
22                 0,
23                 &asn_DEF_INTEGER,
24                 0,
25                 { 0, 0, 0 },
26                 0, 0, /* No default value */
27                 "error-status"
28                 },
29         { ATF_NOFLAGS, 0, offsetof(struct PDU, error_index),
30                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
31                 0,
32                 &asn_DEF_INTEGER,
33                 0,
34                 { 0, 0, 0 },
35                 0, 0, /* No default value */
36                 "error-index"
37                 },
38         { ATF_NOFLAGS, 0, offsetof(struct PDU, variable_bindings),
39                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
40                 0,
41                 &asn_DEF_VarBindList,
42                 0,
43                 { 0, 0, 0 },
44                 0, 0, /* No default value */
45                 "variable-bindings"
46                 },
47 };
48 static const ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
49         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
50 };
51 static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
52     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* request-id */
53     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* error-status */
54     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 }, /* error-index */
55     { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, 0, 0 } /* variable-bindings */
56 };
57 asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = {
58         sizeof(struct PDU),
59         offsetof(struct PDU, _asn_ctx),
60         asn_MAP_PDU_tag2el_1,
61         4,      /* Count of tags in the map */
62         0, 0, 0,        /* Optional elements (not needed) */
63         -1,     /* First extension addition */
64 };
65 asn_TYPE_descriptor_t asn_DEF_PDU = {
66         "PDU",
67         "PDU",
68         &asn_OP_SEQUENCE,
69         asn_DEF_PDU_tags_1,
70         sizeof(asn_DEF_PDU_tags_1)
71                 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
72         asn_DEF_PDU_tags_1,     /* Same as above */
73         sizeof(asn_DEF_PDU_tags_1)
74                 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
75         { 0, 0, SEQUENCE_constraint },
76         asn_MBR_PDU_1,
77         4,      /* Elements count */
78         &asn_SPC_PDU_specs_1    /* Additional specs */
79 };
80