2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "ULP-Components"
4 * found in "../asn1src/ULP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "SlpSessionID.h"
11 memb_sessionID_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
12 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
13 const OCTET_STRING_t
*st
= (const OCTET_STRING_t
*)sptr
;
17 _ASN_CTFAIL(app_key
, td
, sptr
,
18 "%s: value not given (%s:%d)",
19 td
->name
, __FILE__
, __LINE__
);
26 /* Constraint check succeeded */
29 _ASN_CTFAIL(app_key
, td
, sptr
,
30 "%s: constraint failed (%s:%d)",
31 td
->name
, __FILE__
, __LINE__
);
36 static asn_per_constraints_t asn_PER_memb_sessionID_constr_2
= {
37 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
38 { APC_CONSTRAINED
, 0, 0, 4, 4 } /* (SIZE(4..4)) */,
39 0, 0 /* No PER value map */
41 static asn_TYPE_member_t asn_MBR_SlpSessionID_1
[] = {
42 { ATF_NOFLAGS
, 0, offsetof(struct SlpSessionID
, sessionID
),
43 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
44 -1, /* IMPLICIT tag at current level */
45 &asn_DEF_OCTET_STRING
,
46 memb_sessionID_constraint_1
,
47 &asn_PER_memb_sessionID_constr_2
,
51 { ATF_NOFLAGS
, 0, offsetof(struct SlpSessionID
, slpId
),
52 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
53 +1, /* EXPLICIT tag at current level */
55 0, /* Defer constraints checking to the member type */
56 0, /* No PER visible constraints */
61 static ber_tlv_tag_t asn_DEF_SlpSessionID_tags_1
[] = {
62 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
64 static asn_TYPE_tag2member_t asn_MAP_SlpSessionID_tag2el_1
[] = {
65 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* sessionID at 37 */
66 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 } /* slpId at 38 */
68 static asn_SEQUENCE_specifics_t asn_SPC_SlpSessionID_specs_1
= {
69 sizeof(struct SlpSessionID
),
70 offsetof(struct SlpSessionID
, _asn_ctx
),
71 asn_MAP_SlpSessionID_tag2el_1
,
72 2, /* Count of tags in the map */
73 0, 0, 0, /* Optional elements (not needed) */
74 -1, /* Start extensions */
75 -1 /* Stop extensions */
77 asn_TYPE_descriptor_t asn_DEF_SlpSessionID
= {
89 0, /* Use generic outmost tag fetcher */
90 asn_DEF_SlpSessionID_tags_1
,
91 sizeof(asn_DEF_SlpSessionID_tags_1
)
92 /sizeof(asn_DEF_SlpSessionID_tags_1
[0]), /* 1 */
93 asn_DEF_SlpSessionID_tags_1
, /* Same as above */
94 sizeof(asn_DEF_SlpSessionID_tags_1
)
95 /sizeof(asn_DEF_SlpSessionID_tags_1
[0]), /* 1 */
96 0, /* No PER visible constraints */
97 asn_MBR_SlpSessionID_1
,
98 2, /* Elements count */
99 &asn_SPC_SlpSessionID_specs_1
/* Additional specs */