Harald Welte | 3aa901d | 2018-08-13 18:32:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "RSPRO" |
| 4 | * found in "../../asn1/RSPRO.asn" |
| 5 | */ |
| 6 | |
| 7 | #include <osmocom/rspro/IpAddress.h> |
| 8 | |
| 9 | static asn_TYPE_member_t asn_MBR_IpAddress_1[] = { |
| 10 | { ATF_NOFLAGS, 0, offsetof(struct IpAddress, choice.ipv4), |
| 11 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 12 | -1, /* IMPLICIT tag at current level */ |
| 13 | &asn_DEF_Ipv4Address, |
| 14 | 0, /* Defer constraints checking to the member type */ |
| 15 | 0, /* PER is not compiled, use -gen-PER */ |
| 16 | 0, |
| 17 | "ipv4" |
| 18 | }, |
| 19 | { ATF_NOFLAGS, 0, offsetof(struct IpAddress, choice.ipv6), |
| 20 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 21 | -1, /* IMPLICIT tag at current level */ |
| 22 | &asn_DEF_Ipv6Address, |
| 23 | 0, /* Defer constraints checking to the member type */ |
| 24 | 0, /* PER is not compiled, use -gen-PER */ |
| 25 | 0, |
| 26 | "ipv6" |
| 27 | }, |
| 28 | }; |
| 29 | static const asn_TYPE_tag2member_t asn_MAP_IpAddress_tag2el_1[] = { |
| 30 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ipv4 */ |
| 31 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ipv6 */ |
| 32 | }; |
| 33 | static asn_CHOICE_specifics_t asn_SPC_IpAddress_specs_1 = { |
| 34 | sizeof(struct IpAddress), |
| 35 | offsetof(struct IpAddress, _asn_ctx), |
| 36 | offsetof(struct IpAddress, present), |
| 37 | sizeof(((struct IpAddress *)0)->present), |
| 38 | asn_MAP_IpAddress_tag2el_1, |
| 39 | 2, /* Count of tags in the map */ |
| 40 | 0, |
| 41 | -1 /* Extensions start */ |
| 42 | }; |
| 43 | asn_TYPE_descriptor_t asn_DEF_IpAddress = { |
| 44 | "IpAddress", |
| 45 | "IpAddress", |
| 46 | CHOICE_free, |
| 47 | CHOICE_print, |
| 48 | CHOICE_constraint, |
| 49 | CHOICE_decode_ber, |
| 50 | CHOICE_encode_der, |
| 51 | CHOICE_decode_xer, |
| 52 | CHOICE_encode_xer, |
| 53 | 0, 0, /* No UPER support, use "-gen-PER" to enable */ |
| 54 | 0, 0, /* No APER support, use "-gen-PER" to enable */ |
| 55 | CHOICE_outmost_tag, |
| 56 | 0, /* No effective tags (pointer) */ |
| 57 | 0, /* No effective tags (count) */ |
| 58 | 0, /* No tags (pointer) */ |
| 59 | 0, /* No tags (count) */ |
| 60 | 0, /* No PER visible constraints */ |
| 61 | asn_MBR_IpAddress_1, |
| 62 | 2, /* Elements count */ |
| 63 | &asn_SPC_IpAddress_specs_1 /* Additional specs */ |
| 64 | }; |
| 65 | |