mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-cbc.git
synced 2025-11-02 05:03:39 +00:00
This commit adds initial support to encode/decode SBc-AP messages in the form of a library, under src/sbcap/ (includes in include/osmocom/sbcap/). asn1c is used to generate all suport code and structures for ASN.1 APER encoding/decoding, based on asn files obtained from 3GPP TS 29.168 and stored under src/sbcap/asn1/. Currently, mainstream asn1c doesn't yet support ASN.1 APER encoding/decoding, hence mouse07410 's fork is used [1]. Furthermore, several encdoing/decoding bugs where found during the process and fixed, which means asn1.c git >= 30219de2d3da888b4f1eea0dd79f2a505000401a must be used to generate proper code. A new "make -C src/ gen" target is added which can be used to regenerate all C code from the available ASN.1 files in src/sbcap/asn1/*.asn (after properly setting configure.ac ASN_* variables if needed). [1] https://github.com/mouse07410/asn1c Related: OS#4945 Change-Id: If76f8619a9b2d46af6d94b8ae49348b8514e53aa
62 lines
1.9 KiB
C
62 lines
1.9 KiB
C
/*
|
|
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
|
|
* From ASN.1 module "SBC-AP-IEs"
|
|
* found in "../../src/sbcap/asn1/SBC_AP_IEs.asn"
|
|
* `asn1c -S /home/pespin/dev/sysmocom/build/new/out/share/asn1c -fcompound-names -gen-APER -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-OER -no-gen-UPER -no-gen-example`
|
|
*/
|
|
|
|
#ifndef _SBcAP_Cause_H_
|
|
#define _SBcAP_Cause_H_
|
|
|
|
|
|
#include <asn_application.h>
|
|
|
|
/* Including external dependencies */
|
|
#include <NativeInteger.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Dependencies */
|
|
typedef enum SBcAP_Cause {
|
|
SBcAP_Cause_message_accepted = 0,
|
|
SBcAP_Cause_parameter_not_recognised = 1,
|
|
SBcAP_Cause_parameter_value_invalid = 2,
|
|
SBcAP_Cause_valid_message_not_identified = 3,
|
|
SBcAP_Cause_tracking_area_not_valid = 4,
|
|
SBcAP_Cause_unrecognised_message = 5,
|
|
SBcAP_Cause_missing_mandatory_element = 6,
|
|
SBcAP_Cause_mME_capacity_exceeded = 7,
|
|
SBcAP_Cause_mME_memory_exceeded = 8,
|
|
SBcAP_Cause_warning_broadcast_not_supported = 9,
|
|
SBcAP_Cause_warning_broadcast_not_operational = 10,
|
|
SBcAP_Cause_message_reference_already_used = 11,
|
|
SBcAP_Cause_unspecifed_error = 12,
|
|
SBcAP_Cause_transfer_syntax_error = 13,
|
|
SBcAP_Cause_semantic_error = 14,
|
|
SBcAP_Cause_message_not_compatible_with_receiver_state = 15,
|
|
SBcAP_Cause_abstract_syntax_error_reject = 16,
|
|
SBcAP_Cause_abstract_syntax_error_ignore_and_notify = 17,
|
|
SBcAP_Cause_abstract_syntax_error_falsely_constructed_message = 18
|
|
} e_SBcAP_Cause;
|
|
|
|
/* SBcAP_Cause */
|
|
typedef long SBcAP_Cause_t;
|
|
|
|
/* Implementation */
|
|
extern asn_per_constraints_t asn_PER_type_SBcAP_Cause_constr_1;
|
|
extern asn_TYPE_descriptor_t asn_DEF_SBcAP_Cause;
|
|
asn_struct_free_f SBcAP_Cause_free;
|
|
asn_struct_print_f SBcAP_Cause_print;
|
|
asn_constr_check_f SBcAP_Cause_constraint;
|
|
per_type_decoder_f SBcAP_Cause_decode_aper;
|
|
per_type_encoder_f SBcAP_Cause_encode_aper;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SBcAP_Cause_H_ */
|
|
#include <asn_internal.h>
|