Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "HNBAP-IEs" |
| 4 | * found in "../../asn1/hnbap/HNBAP-IEs.asn" |
Harald Welte | ff4750f | 2015-08-31 09:55:28 +0200 | [diff] [blame] | 5 | * `asn1c -gen-PER` |
Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
Neels Hofmeyr | f1f2d7c | 2016-01-05 12:00:06 +0100 | [diff] [blame] | 8 | #include <osmocom/hnbap/TransportInfo.h> |
Harald Welte | d523a69 | 2015-08-30 23:11:19 +0200 | [diff] [blame] | 9 | |
| 10 | static asn_per_constraints_t asn_PER_type_transportAssociation_constr_3 GCC_NOTUSED = { |
| 11 | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, |
| 12 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 13 | 0, 0 /* No PER value map */ |
| 14 | }; |
| 15 | static asn_TYPE_member_t asn_MBR_transportAssociation_3[] = { |
| 16 | { ATF_NOFLAGS, 0, offsetof(struct transportAssociation, choice.gtp_TEI), |
| 17 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 18 | -1, /* IMPLICIT tag at current level */ |
| 19 | &asn_DEF_GTP_TEI, |
| 20 | 0, /* Defer constraints checking to the member type */ |
| 21 | 0, /* No PER visible constraints */ |
| 22 | 0, |
| 23 | "gtp-TEI" |
| 24 | }, |
| 25 | { ATF_NOFLAGS, 0, offsetof(struct transportAssociation, choice.bindingID), |
| 26 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 27 | -1, /* IMPLICIT tag at current level */ |
| 28 | &asn_DEF_BindingID, |
| 29 | 0, /* Defer constraints checking to the member type */ |
| 30 | 0, /* No PER visible constraints */ |
| 31 | 0, |
| 32 | "bindingID" |
| 33 | }, |
| 34 | }; |
| 35 | static const asn_TYPE_tag2member_t asn_MAP_transportAssociation_tag2el_3[] = { |
| 36 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gtp-TEI */ |
| 37 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bindingID */ |
| 38 | }; |
| 39 | static asn_CHOICE_specifics_t asn_SPC_transportAssociation_specs_3 = { |
| 40 | sizeof(struct transportAssociation), |
| 41 | offsetof(struct transportAssociation, _asn_ctx), |
| 42 | offsetof(struct transportAssociation, present), |
| 43 | sizeof(((struct transportAssociation *)0)->present), |
| 44 | asn_MAP_transportAssociation_tag2el_3, |
| 45 | 2, /* Count of tags in the map */ |
| 46 | 0, |
| 47 | 2 /* Extensions start */ |
| 48 | }; |
| 49 | static /* Use -fall-defs-global to expose */ |
| 50 | asn_TYPE_descriptor_t asn_DEF_transportAssociation_3 = { |
| 51 | "transportAssociation", |
| 52 | "transportAssociation", |
| 53 | CHOICE_free, |
| 54 | CHOICE_print, |
| 55 | CHOICE_constraint, |
| 56 | CHOICE_decode_ber, |
| 57 | CHOICE_encode_der, |
| 58 | CHOICE_decode_xer, |
| 59 | CHOICE_encode_xer, |
| 60 | CHOICE_decode_uper, |
| 61 | CHOICE_encode_uper, |
| 62 | CHOICE_decode_aper, |
| 63 | CHOICE_encode_aper, |
| 64 | CHOICE_outmost_tag, |
| 65 | 0, /* No effective tags (pointer) */ |
| 66 | 0, /* No effective tags (count) */ |
| 67 | 0, /* No tags (pointer) */ |
| 68 | 0, /* No tags (count) */ |
| 69 | &asn_PER_type_transportAssociation_constr_3, |
| 70 | asn_MBR_transportAssociation_3, |
| 71 | 2, /* Elements count */ |
| 72 | &asn_SPC_transportAssociation_specs_3 /* Additional specs */ |
| 73 | }; |
| 74 | |
| 75 | static asn_TYPE_member_t asn_MBR_TransportInfo_1[] = { |
| 76 | { ATF_NOFLAGS, 0, offsetof(struct TransportInfo, transportLayerAddress), |
| 77 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 78 | -1, /* IMPLICIT tag at current level */ |
| 79 | &asn_DEF_TransportLayerAddress, |
| 80 | 0, /* Defer constraints checking to the member type */ |
| 81 | 0, /* No PER visible constraints */ |
| 82 | 0, |
| 83 | "transportLayerAddress" |
| 84 | }, |
| 85 | { ATF_NOFLAGS, 0, offsetof(struct TransportInfo, transportAssociation), |
| 86 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 87 | +1, /* EXPLICIT tag at current level */ |
| 88 | &asn_DEF_transportAssociation_3, |
| 89 | 0, /* Defer constraints checking to the member type */ |
| 90 | 0, /* No PER visible constraints */ |
| 91 | 0, |
| 92 | "transportAssociation" |
| 93 | }, |
| 94 | { ATF_POINTER, 1, offsetof(struct TransportInfo, iE_Extensions), |
| 95 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 96 | -1, /* IMPLICIT tag at current level */ |
| 97 | &asn_DEF_IE_Extensions, |
| 98 | 0, /* Defer constraints checking to the member type */ |
| 99 | 0, /* No PER visible constraints */ |
| 100 | 0, |
| 101 | "iE-Extensions" |
| 102 | }, |
| 103 | }; |
| 104 | static const int asn_MAP_TransportInfo_oms_1[] = { 2 }; |
| 105 | static const ber_tlv_tag_t asn_DEF_TransportInfo_tags_1[] = { |
| 106 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 107 | }; |
| 108 | static const asn_TYPE_tag2member_t asn_MAP_TransportInfo_tag2el_1[] = { |
| 109 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transportLayerAddress */ |
| 110 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transportAssociation */ |
| 111 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
| 112 | }; |
| 113 | static asn_SEQUENCE_specifics_t asn_SPC_TransportInfo_specs_1 = { |
| 114 | sizeof(struct TransportInfo), |
| 115 | offsetof(struct TransportInfo, _asn_ctx), |
| 116 | asn_MAP_TransportInfo_tag2el_1, |
| 117 | 3, /* Count of tags in the map */ |
| 118 | asn_MAP_TransportInfo_oms_1, /* Optional members */ |
| 119 | 1, 0, /* Root/Additions */ |
| 120 | 2, /* Start extensions */ |
| 121 | 4 /* Stop extensions */ |
| 122 | }; |
| 123 | asn_TYPE_descriptor_t asn_DEF_TransportInfo = { |
| 124 | "TransportInfo", |
| 125 | "TransportInfo", |
| 126 | SEQUENCE_free, |
| 127 | SEQUENCE_print, |
| 128 | SEQUENCE_constraint, |
| 129 | SEQUENCE_decode_ber, |
| 130 | SEQUENCE_encode_der, |
| 131 | SEQUENCE_decode_xer, |
| 132 | SEQUENCE_encode_xer, |
| 133 | SEQUENCE_decode_uper, |
| 134 | SEQUENCE_encode_uper, |
| 135 | SEQUENCE_decode_aper, |
| 136 | SEQUENCE_encode_aper, |
| 137 | 0, /* Use generic outmost tag fetcher */ |
| 138 | asn_DEF_TransportInfo_tags_1, |
| 139 | sizeof(asn_DEF_TransportInfo_tags_1) |
| 140 | /sizeof(asn_DEF_TransportInfo_tags_1[0]), /* 1 */ |
| 141 | asn_DEF_TransportInfo_tags_1, /* Same as above */ |
| 142 | sizeof(asn_DEF_TransportInfo_tags_1) |
| 143 | /sizeof(asn_DEF_TransportInfo_tags_1[0]), /* 1 */ |
| 144 | 0, /* No PER visible constraints */ |
| 145 | asn_MBR_TransportInfo_1, |
| 146 | 3, /* Elements count */ |
| 147 | &asn_SPC_TransportInfo_specs_1 /* Additional specs */ |
| 148 | }; |
| 149 | |