]> git.stg.codes - stg.git/blob - libs/smux/PDU.c
Fix Boost package name.
[stg.git] / libs / smux / PDU.c
1 /*
2  * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1157-SNMP"
4  *      found in "RFC1157-SNMP.asn1"
5  *      `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
6  */
7
8 #include "PDU.h"
9
10 static 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,      /* Defer constraints checking to the member type */
16                 0,      /* PER is not compiled, use -gen-PER */
17                 0,
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,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
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,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
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,      /* Defer constraints checking to the member type */
43                 0,      /* PER is not compiled, use -gen-PER */
44                 0,
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 static 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,     /* Start extensions */
64         -1      /* Stop extensions */
65 };
66 asn_TYPE_descriptor_t asn_DEF_PDU = {
67         "PDU",
68         "PDU",
69         SEQUENCE_free,
70         SEQUENCE_print,
71         SEQUENCE_constraint,
72         SEQUENCE_decode_ber,
73         SEQUENCE_encode_der,
74         SEQUENCE_decode_xer,
75         SEQUENCE_encode_xer,
76         0, 0,   /* No PER support, use "-gen-PER" to enable */
77         0,      /* Use generic outmost tag fetcher */
78         asn_DEF_PDU_tags_1,
79         sizeof(asn_DEF_PDU_tags_1)
80                 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
81         asn_DEF_PDU_tags_1,     /* Same as above */
82         sizeof(asn_DEF_PDU_tags_1)
83                 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
84         0,      /* No PER visible constraints */
85         asn_MBR_PDU_1,
86         4,      /* Elements count */
87         &asn_SPC_PDU_specs_1    /* Additional specs */
88 };
89