]> git.stg.codes - stg.git/blob - libs/smux/IpNetToMediaEntry.c
Update SMUX library.
[stg.git] / libs / smux / IpNetToMediaEntry.c
1 /*
2  * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1213-MIB"
4  *      found in "RFC1213-MIB.asn1"
5  *      `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
6  */
7
8 #include "IpNetToMediaEntry.h"
9
10 static asn_TYPE_member_t asn_MBR_IpNetToMediaEntry_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct IpNetToMediaEntry, ipNetToMediaIfIndex),
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                 "ipNetToMediaIfIndex"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct IpNetToMediaEntry, ipNetToMediaPhysAddress),
21                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
22                 0,
23                 &asn_DEF_PhysAddress,
24                 0,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
27                 "ipNetToMediaPhysAddress"
28                 },
29         { ATF_NOFLAGS, 0, offsetof(struct IpNetToMediaEntry, ipNetToMediaNetAddress),
30                 (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
31                 0,
32                 &asn_DEF_IpAddress,
33                 0,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
36                 "ipNetToMediaNetAddress"
37                 },
38         { ATF_NOFLAGS, 0, offsetof(struct IpNetToMediaEntry, ipNetToMediaType),
39                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
40                 0,
41                 &asn_DEF_INTEGER,
42                 0,      /* Defer constraints checking to the member type */
43                 0,      /* PER is not compiled, use -gen-PER */
44                 0,
45                 "ipNetToMediaType"
46                 },
47 };
48 static const ber_tlv_tag_t asn_DEF_IpNetToMediaEntry_tags_1[] = {
49         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
50 };
51 static const asn_TYPE_tag2member_t asn_MAP_IpNetToMediaEntry_tag2el_1[] = {
52     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* ipNetToMediaIfIndex */
53     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -1, 0 }, /* ipNetToMediaType */
54     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* ipNetToMediaPhysAddress */
55     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 2, 0, 0 } /* ipNetToMediaNetAddress */
56 };
57 static asn_SEQUENCE_specifics_t asn_SPC_IpNetToMediaEntry_specs_1 = {
58         sizeof(struct IpNetToMediaEntry),
59         offsetof(struct IpNetToMediaEntry, _asn_ctx),
60         asn_MAP_IpNetToMediaEntry_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_IpNetToMediaEntry = {
67         "IpNetToMediaEntry",
68         "IpNetToMediaEntry",
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_IpNetToMediaEntry_tags_1,
79         sizeof(asn_DEF_IpNetToMediaEntry_tags_1)
80                 /sizeof(asn_DEF_IpNetToMediaEntry_tags_1[0]), /* 1 */
81         asn_DEF_IpNetToMediaEntry_tags_1,       /* Same as above */
82         sizeof(asn_DEF_IpNetToMediaEntry_tags_1)
83                 /sizeof(asn_DEF_IpNetToMediaEntry_tags_1[0]), /* 1 */
84         0,      /* No PER visible constraints */
85         asn_MBR_IpNetToMediaEntry_1,
86         4,      /* Elements count */
87         &asn_SPC_IpNetToMediaEntry_specs_1      /* Additional specs */
88 };
89