blob: 003bbdb66370bd653a4a4b8a1cb34c94a564a99d [file] [log] [blame]
Harald Welte3aa901d2018-08-13 18:32:36 +02001/*
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/IpPort.h>
8
9static asn_TYPE_member_t asn_MBR_IpPort_1[] = {
10 { ATF_NOFLAGS, 0, offsetof(struct IpPort, ip),
11 -1 /* Ambiguous tag (CHOICE?) */,
12 0,
13 &asn_DEF_IpAddress,
14 0, /* Defer constraints checking to the member type */
15 0, /* PER is not compiled, use -gen-PER */
16 0,
17 "ip"
18 },
19 { ATF_NOFLAGS, 0, offsetof(struct IpPort, port),
20 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
21 0,
22 &asn_DEF_PortNumber,
23 0, /* Defer constraints checking to the member type */
24 0, /* PER is not compiled, use -gen-PER */
25 0,
26 "port"
27 },
28};
29static const ber_tlv_tag_t asn_DEF_IpPort_tags_1[] = {
30 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
31};
32static const asn_TYPE_tag2member_t asn_MAP_IpPort_tag2el_1[] = {
33 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* port */
34 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ipv4 */
35 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* ipv6 */
36};
37static asn_SEQUENCE_specifics_t asn_SPC_IpPort_specs_1 = {
38 sizeof(struct IpPort),
39 offsetof(struct IpPort, _asn_ctx),
40 asn_MAP_IpPort_tag2el_1,
41 3, /* Count of tags in the map */
42 0, 0, 0, /* Optional elements (not needed) */
43 -1, /* Start extensions */
44 -1 /* Stop extensions */
45};
46asn_TYPE_descriptor_t asn_DEF_IpPort = {
47 "IpPort",
48 "IpPort",
49 SEQUENCE_free,
50 SEQUENCE_print,
51 SEQUENCE_constraint,
52 SEQUENCE_decode_ber,
53 SEQUENCE_encode_der,
54 SEQUENCE_decode_xer,
55 SEQUENCE_encode_xer,
56 0, 0, /* No UPER support, use "-gen-PER" to enable */
57 0, 0, /* No APER support, use "-gen-PER" to enable */
58 0, /* Use generic outmost tag fetcher */
59 asn_DEF_IpPort_tags_1,
60 sizeof(asn_DEF_IpPort_tags_1)
61 /sizeof(asn_DEF_IpPort_tags_1[0]), /* 1 */
62 asn_DEF_IpPort_tags_1, /* Same as above */
63 sizeof(asn_DEF_IpPort_tags_1)
64 /sizeof(asn_DEF_IpPort_tags_1[0]), /* 1 */
65 0, /* No PER visible constraints */
66 asn_MBR_IpPort_1,
67 2, /* Elements count */
68 &asn_SPC_IpPort_specs_1 /* Additional specs */
69};
70