]> git.stg.codes - stg.git/blob - stglibs/smux.lib/AtEntry.c
Proper checks for libs.
[stg.git] / stglibs / smux.lib / AtEntry.c
1 /*
2  * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1213-MIB"
4  *      found in "RFC1213-MIB.asn1"
5  *      `asn1c -fskeletons-copy`
6  */
7
8 #include <asn_internal.h>
9
10 #include "AtEntry.h"
11
12 static asn_TYPE_member_t asn_MBR_AtEntry_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct AtEntry, atIfIndex),
14                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
15                 0,
16                 &asn_DEF_INTEGER,
17                 0,      /* Defer constraints checking to the member type */
18                 0,      /* PER is not compiled, use -gen-PER */
19                 0,
20                 "atIfIndex"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct AtEntry, atPhysAddress),
23                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
24                 0,
25                 &asn_DEF_PhysAddress,
26                 0,      /* Defer constraints checking to the member type */
27                 0,      /* PER is not compiled, use -gen-PER */
28                 0,
29                 "atPhysAddress"
30                 },
31         { ATF_NOFLAGS, 0, offsetof(struct AtEntry, atNetAddress),
32                 -1 /* Ambiguous tag (CHOICE?) */,
33                 0,
34                 &asn_DEF_NetworkAddress,
35                 0,      /* Defer constraints checking to the member type */
36                 0,      /* PER is not compiled, use -gen-PER */
37                 0,
38                 "atNetAddress"
39                 },
40 };
41 static ber_tlv_tag_t asn_DEF_AtEntry_tags_1[] = {
42         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
43 };
44 static asn_TYPE_tag2member_t asn_MAP_AtEntry_tag2el_1[] = {
45     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* atIfIndex at 154 */
46     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* atPhysAddress at 157 */
47     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 2, 0, 0 } /* internet at 113 */
48 };
49 static asn_SEQUENCE_specifics_t asn_SPC_AtEntry_specs_1 = {
50         sizeof(struct AtEntry),
51         offsetof(struct AtEntry, _asn_ctx),
52         asn_MAP_AtEntry_tag2el_1,
53         3,      /* Count of tags in the map */
54         0, 0, 0,        /* Optional elements (not needed) */
55         -1,     /* Start extensions */
56         -1      /* Stop extensions */
57 };
58 asn_TYPE_descriptor_t asn_DEF_AtEntry = {
59         "AtEntry",
60         "AtEntry",
61         SEQUENCE_free,
62         SEQUENCE_print,
63         SEQUENCE_constraint,
64         SEQUENCE_decode_ber,
65         SEQUENCE_encode_der,
66         SEQUENCE_decode_xer,
67         SEQUENCE_encode_xer,
68         0, 0,   /* No PER support, use "-gen-PER" to enable */
69         0,      /* Use generic outmost tag fetcher */
70         asn_DEF_AtEntry_tags_1,
71         sizeof(asn_DEF_AtEntry_tags_1)
72                 /sizeof(asn_DEF_AtEntry_tags_1[0]), /* 1 */
73         asn_DEF_AtEntry_tags_1, /* Same as above */
74         sizeof(asn_DEF_AtEntry_tags_1)
75                 /sizeof(asn_DEF_AtEntry_tags_1[0]), /* 1 */
76         0,      /* No PER visible constraints */
77         asn_MBR_AtEntry_1,
78         3,      /* Elements count */
79         &asn_SPC_AtEntry_specs_1        /* Additional specs */
80 };
81