From 696a2fec27003136d81556b12de9e43075d49593 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 4 Feb 2017 23:47:16 +0900 Subject: [PATCH] intermediate --- lib/asn/src/Makefile.am | 2 +- lib/asn/src/s1ap_common.c | 2 +- .../{s1ap_decoder.c => s1ap_ies_decoder.c} | 1762 +++++------------ lib/asn/src/s1ap_ies_defs.h | 2 +- .../{s1ap_encoder.c => s1ap_ies_encoder.c} | 2 +- ...{s1ap_xer_print.c => s1ap_ies_xer_print.c} | 2 +- lib/asn/src/s1ap_mme_decoder.c | 9 +- lib/asn/support/asn1tostruct.py | 24 +- lib/asn/test/s1ap_test.c | 4 + 9 files changed, 559 insertions(+), 1250 deletions(-) rename lib/asn/src/{s1ap_decoder.c => s1ap_ies_decoder.c} (79%) rename lib/asn/src/{s1ap_encoder.c => s1ap_ies_encoder.c} (99%) rename lib/asn/src/{s1ap_xer_print.c => s1ap_ies_xer_print.c} (99%) diff --git a/lib/asn/src/Makefile.am b/lib/asn/src/Makefile.am index a247af950..f78e3345f 100644 --- a/lib/asn/src/Makefile.am +++ b/lib/asn/src/Makefile.am @@ -9,7 +9,7 @@ libasn_la_SOURCES = \ nodist_libasn_la_SOURCES = \ s1ap_common.c \ - s1ap_encoder.c s1ap_decoder.c s1ap_xer_print.c \ + s1ap_ies_encoder.c s1ap_ies_decoder.c s1ap_ies_xer_print.c \ s1ap_mme_encoder.c s1ap_mme_decoder.c libasn_la_DEPENDENCIES = \ diff --git a/lib/asn/src/s1ap_common.c b/lib/asn/src/s1ap_common.c index 9b261949c..5186772b7 100644 --- a/lib/asn/src/s1ap_common.c +++ b/lib/asn/src/s1ap_common.c @@ -37,7 +37,7 @@ #endif int asn_debug = 0; -int asn1_xer_print = 1; +int asn1_xer_print = 0; void free_wrapper(void *ptr) { diff --git a/lib/asn/src/s1ap_decoder.c b/lib/asn/src/s1ap_ies_decoder.c similarity index 79% rename from lib/asn/src/s1ap_decoder.c rename to lib/asn/src/s1ap_ies_decoder.c index 5fdd9e958..00bbfc9e0 100644 --- a/lib/asn/src/s1ap_decoder.c +++ b/lib/asn/src/s1ap_ies_decoder.c @@ -30,10 +30,10 @@ /******************************************************************************* * This file had been created by asn1tostruct.py script v1.0.2 * Please do not modify this file but regenerate it via script. - * Created on: 2017-02-04 15:10:49.563017 by acetcom + * Created on: 2017-02-04 23:11:39.395850 by acetcom * from ['S1AP-PDU.asn'] ******************************************************************************/ -#define TRACE_MODULE s1ap_decoder +#define TRACE_MODULE ies_decoder #include "s1ap_common.h" #include "s1ap_ies_defs.h" #include "core_debug.h" @@ -49,7 +49,7 @@ int s1ap_decode_s1ap_deactivatetraceies( assert(any_p != NULL); assert(s1ap_DeactivateTraceIEs != NULL); - d_trace(3, "Decoding message S1ap_DeactivateTraceIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_DeactivateTraceIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_DeactivateTrace, (void**)&s1ap_DeactivateTrace_p); @@ -62,14 +62,12 @@ int s1ap_decode_s1ap_deactivatetraceies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_DeactivateTraceIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -77,14 +75,12 @@ int s1ap_decode_s1ap_deactivatetraceies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_DeactivateTraceIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_UTRAN_Trace_ID: @@ -92,18 +88,16 @@ int s1ap_decode_s1ap_deactivatetraceies( S1ap_E_UTRAN_Trace_ID_t *s1apEUTRANTraceID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_UTRAN_Trace_ID, (void**)&s1apEUTRANTraceID_p); if (tempDecoded < 0 || s1apEUTRANTraceID_p == NULL) { - d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); + d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); if (s1apEUTRANTraceID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); memcpy(&s1ap_DeactivateTraceIEs->e_UTRAN_Trace_ID, s1apEUTRANTraceID_p, sizeof(S1ap_E_UTRAN_Trace_ID_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_deactivatetraceies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_deactivatetraceies\n", (int)ie_p->id); return -1; } } @@ -121,7 +115,7 @@ int s1ap_decode_s1ap_enbdirectinformationtransferies( assert(any_p != NULL); assert(s1ap_ENBDirectInformationTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBDirectInformationTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBDirectInformationTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBDirectInformationTransfer, (void**)&s1ap_ENBDirectInformationTransfer_p); @@ -134,18 +128,16 @@ int s1ap_decode_s1ap_enbdirectinformationtransferies( S1ap_Inter_SystemInformationTransferType_t *s1apInterSystemInformationTransferType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Inter_SystemInformationTransferType, (void**)&s1apInterSystemInformationTransferType_p); if (tempDecoded < 0 || s1apInterSystemInformationTransferType_p == NULL) { - d_error("Decoding of IE inter_SystemInformationTransferTypeEDT failed\n"); + d_error("Decoding of IE inter_SystemInformationTransferTypeEDT failed\n"); if (s1apInterSystemInformationTransferType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Inter_SystemInformationTransferType, s1apInterSystemInformationTransferType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Inter_SystemInformationTransferType, s1apInterSystemInformationTransferType_p); memcpy(&s1ap_ENBDirectInformationTransferIEs->inter_SystemInformationTransferTypeEDT, s1apInterSystemInformationTransferType_p, sizeof(S1ap_Inter_SystemInformationTransferType_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbdirectinformationtransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbdirectinformationtransferies\n", (int)ie_p->id); return -1; } } @@ -163,7 +155,7 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( assert(any_p != NULL); assert(s1ap_E_RABReleaseResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABReleaseResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABReleaseResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABReleaseResponse, (void**)&s1ap_E_RABReleaseResponse_p); @@ -176,14 +168,12 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABReleaseResponseIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -191,14 +181,12 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABReleaseResponseIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -208,16 +196,14 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( s1ap_E_RABReleaseResponseIEs->presenceMask |= S1AP_E_RABRELEASERESPONSEIES_E_RABRELEASELISTBEARERRELCOMP_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABReleaseListBearerRelComp, (void**)&s1apERABReleaseListBearerRelComp_p); if (tempDecoded < 0 || s1apERABReleaseListBearerRelComp_p == NULL) { - d_error("Decoding of IE e_RABReleaseListBearerRelComp failed\n"); + d_error("Decoding of IE e_RABReleaseListBearerRelComp failed\n"); if (s1apERABReleaseListBearerRelComp_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABReleaseListBearerRelComp, s1apERABReleaseListBearerRelComp_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABReleaseListBearerRelComp, s1apERABReleaseListBearerRelComp_p); if (s1ap_decode_s1ap_e_rabreleaselistbearerrelcomp(&s1ap_E_RABReleaseResponseIEs->e_RABReleaseListBearerRelComp, s1apERABReleaseListBearerRelComp_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABReleaseListBearerRelComp failed\n"); + d_error("Decoding of encapsulated IE s1apERABReleaseListBearerRelComp failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABReleaseListBearerRelComp, s1apERABReleaseListBearerRelComp_p); } } break; @@ -228,16 +214,14 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( s1ap_E_RABReleaseResponseIEs->presenceMask |= S1AP_E_RABRELEASERESPONSEIES_E_RABFAILEDTORELEASELIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABFailedToReleaseList failed\n"); + d_error("Decoding of IE e_RABFailedToReleaseList failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_E_RABReleaseResponseIEs->e_RABFailedToReleaseList, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -248,18 +232,16 @@ int s1ap_decode_s1ap_e_rabreleaseresponseies( s1ap_E_RABReleaseResponseIEs->presenceMask |= S1AP_E_RABRELEASERESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_E_RABReleaseResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleaseresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleaseresponseies\n", (int)ie_p->id); return -1; } } @@ -277,7 +259,7 @@ int s1ap_decode_s1ap_uplinknonueassociatedlppatransport_ies( assert(any_p != NULL); assert(s1ap_UplinkNonUEAssociatedLPPaTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_UplinkNonUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UplinkNonUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UplinkNonUEAssociatedLPPaTransport, (void**)&s1ap_UplinkNonUEAssociatedLPPaTransport_p); @@ -290,14 +272,12 @@ int s1ap_decode_s1ap_uplinknonueassociatedlppatransport_ies( S1ap_Routing_ID_t *s1apRoutingID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Routing_ID, (void**)&s1apRoutingID_p); if (tempDecoded < 0 || s1apRoutingID_p == NULL) { - d_error("Decoding of IE routing_ID failed\n"); + d_error("Decoding of IE routing_ID failed\n"); if (s1apRoutingID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); memcpy(&s1ap_UplinkNonUEAssociatedLPPaTransport_IEs->routing_ID, s1apRoutingID_p, sizeof(S1ap_Routing_ID_t)); } break; case S1ap_ProtocolIE_ID_id_LPPa_PDU: @@ -305,18 +285,16 @@ int s1ap_decode_s1ap_uplinknonueassociatedlppatransport_ies( S1ap_LPPa_PDU_t *s1apLPPaPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LPPa_PDU, (void**)&s1apLPPaPDU_p); if (tempDecoded < 0 || s1apLPPaPDU_p == NULL) { - d_error("Decoding of IE lpPa_PDU failed\n"); + d_error("Decoding of IE lpPa_PDU failed\n"); if (s1apLPPaPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); memcpy(&s1ap_UplinkNonUEAssociatedLPPaTransport_IEs->lpPa_PDU, s1apLPPaPDU_p, sizeof(S1ap_LPPa_PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinknonueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinknonueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -334,7 +312,7 @@ int s1ap_decode_s1ap_tracestarties( assert(any_p != NULL); assert(s1ap_TraceStartIEs != NULL); - d_trace(3, "Decoding message S1ap_TraceStartIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_TraceStartIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_TraceStart, (void**)&s1ap_TraceStart_p); @@ -347,14 +325,12 @@ int s1ap_decode_s1ap_tracestarties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_TraceStartIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -362,14 +338,12 @@ int s1ap_decode_s1ap_tracestarties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_TraceStartIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_TraceActivation: @@ -377,18 +351,16 @@ int s1ap_decode_s1ap_tracestarties( S1ap_TraceActivation_t *s1apTraceActivation_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TraceActivation, (void**)&s1apTraceActivation_p); if (tempDecoded < 0 || s1apTraceActivation_p == NULL) { - d_error("Decoding of IE traceActivation failed\n"); + d_error("Decoding of IE traceActivation failed\n"); if (s1apTraceActivation_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); memcpy(&s1ap_TraceStartIEs->traceActivation, s1apTraceActivation_p, sizeof(S1ap_TraceActivation_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_tracestarties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_tracestarties\n", (int)ie_p->id); return -1; } } @@ -406,7 +378,7 @@ int s1ap_decode_s1ap_writereplacewarningresponseies( assert(any_p != NULL); assert(s1ap_WriteReplaceWarningResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_WriteReplaceWarningResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_WriteReplaceWarningResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_WriteReplaceWarningResponse, (void**)&s1ap_WriteReplaceWarningResponse_p); @@ -419,14 +391,12 @@ int s1ap_decode_s1ap_writereplacewarningresponseies( S1ap_MessageIdentifier_t *s1apMessageIdentifier_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MessageIdentifier, (void**)&s1apMessageIdentifier_p); if (tempDecoded < 0 || s1apMessageIdentifier_p == NULL) { - d_error("Decoding of IE messageIdentifier failed\n"); + d_error("Decoding of IE messageIdentifier failed\n"); if (s1apMessageIdentifier_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); memcpy(&s1ap_WriteReplaceWarningResponseIEs->messageIdentifier, s1apMessageIdentifier_p, sizeof(S1ap_MessageIdentifier_t)); } break; case S1ap_ProtocolIE_ID_id_SerialNumber: @@ -434,14 +404,12 @@ int s1ap_decode_s1ap_writereplacewarningresponseies( S1ap_SerialNumber_t *s1apSerialNumber_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SerialNumber, (void**)&s1apSerialNumber_p); if (tempDecoded < 0 || s1apSerialNumber_p == NULL) { - d_error("Decoding of IE serialNumber failed\n"); + d_error("Decoding of IE serialNumber failed\n"); if (s1apSerialNumber_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); memcpy(&s1ap_WriteReplaceWarningResponseIEs->serialNumber, s1apSerialNumber_p, sizeof(S1ap_SerialNumber_t)); } break; /* Optional field */ @@ -451,14 +419,12 @@ int s1ap_decode_s1ap_writereplacewarningresponseies( s1ap_WriteReplaceWarningResponseIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGRESPONSEIES_BROADCASTCOMPLETEDAREALIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_BroadcastCompletedAreaList, (void**)&s1apBroadcastCompletedAreaList_p); if (tempDecoded < 0 || s1apBroadcastCompletedAreaList_p == NULL) { - d_error("Decoding of IE broadcastCompletedAreaList failed\n"); + d_error("Decoding of IE broadcastCompletedAreaList failed\n"); if (s1apBroadcastCompletedAreaList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_BroadcastCompletedAreaList, s1apBroadcastCompletedAreaList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_BroadcastCompletedAreaList, s1apBroadcastCompletedAreaList_p); memcpy(&s1ap_WriteReplaceWarningResponseIEs->broadcastCompletedAreaList, s1apBroadcastCompletedAreaList_p, sizeof(S1ap_BroadcastCompletedAreaList_t)); } break; /* Optional field */ @@ -468,18 +434,16 @@ int s1ap_decode_s1ap_writereplacewarningresponseies( s1ap_WriteReplaceWarningResponseIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_WriteReplaceWarningResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_writereplacewarningresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_writereplacewarningresponseies\n", (int)ie_p->id); return -1; } } @@ -497,7 +461,7 @@ int s1ap_decode_s1ap_handovercancelies( assert(any_p != NULL); assert(s1ap_HandoverCancelIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverCancelIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverCancelIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverCancel, (void**)&s1ap_HandoverCancel_p); @@ -510,14 +474,12 @@ int s1ap_decode_s1ap_handovercancelies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverCancelIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -525,14 +487,12 @@ int s1ap_decode_s1ap_handovercancelies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverCancelIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -540,18 +500,16 @@ int s1ap_decode_s1ap_handovercancelies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_HandoverCancelIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handovercancelies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handovercancelies\n", (int)ie_p->id); return -1; } } @@ -569,7 +527,7 @@ int s1ap_decode_s1ap_handoverpreparationfailureies( assert(any_p != NULL); assert(s1ap_HandoverPreparationFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverPreparationFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverPreparationFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverPreparationFailure, (void**)&s1ap_HandoverPreparationFailure_p); @@ -582,14 +540,12 @@ int s1ap_decode_s1ap_handoverpreparationfailureies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverPreparationFailureIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -597,14 +553,12 @@ int s1ap_decode_s1ap_handoverpreparationfailureies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverPreparationFailureIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -612,14 +566,12 @@ int s1ap_decode_s1ap_handoverpreparationfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_HandoverPreparationFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -629,18 +581,16 @@ int s1ap_decode_s1ap_handoverpreparationfailureies( s1ap_HandoverPreparationFailureIEs->presenceMask |= S1AP_HANDOVERPREPARATIONFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_HandoverPreparationFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handoverpreparationfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handoverpreparationfailureies\n", (int)ie_p->id); return -1; } } @@ -658,7 +608,7 @@ int s1ap_decode_s1ap_uecontextreleaserequest_ies( assert(any_p != NULL); assert(s1ap_UEContextReleaseRequest_IEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextReleaseRequest_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextReleaseRequest_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextReleaseRequest, (void**)&s1ap_UEContextReleaseRequest_p); @@ -671,14 +621,12 @@ int s1ap_decode_s1ap_uecontextreleaserequest_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UEContextReleaseRequest_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -686,14 +634,12 @@ int s1ap_decode_s1ap_uecontextreleaserequest_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UEContextReleaseRequest_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -701,14 +647,12 @@ int s1ap_decode_s1ap_uecontextreleaserequest_ies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_UEContextReleaseRequest_IEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -718,18 +662,16 @@ int s1ap_decode_s1ap_uecontextreleaserequest_ies( s1ap_UEContextReleaseRequest_IEs->presenceMask |= S1AP_UECONTEXTRELEASEREQUEST_IES_GWCONTEXTRELEASEINDICATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GWContextReleaseIndication, (void**)&s1apGWContextReleaseIndication_p); if (tempDecoded < 0 || s1apGWContextReleaseIndication_p == NULL) { - d_error("Decoding of IE gwContextReleaseIndication failed\n"); + d_error("Decoding of IE gwContextReleaseIndication failed\n"); if (s1apGWContextReleaseIndication_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GWContextReleaseIndication, s1apGWContextReleaseIndication_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GWContextReleaseIndication, s1apGWContextReleaseIndication_p); memcpy(&s1ap_UEContextReleaseRequest_IEs->gwContextReleaseIndication, s1apGWContextReleaseIndication_p, sizeof(S1ap_GWContextReleaseIndication_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleaserequest_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleaserequest_ies\n", (int)ie_p->id); return -1; } } @@ -747,7 +689,7 @@ int s1ap_decode_s1ap_initialuemessage_ies( assert(any_p != NULL); assert(s1ap_InitialUEMessage_IEs != NULL); - d_trace(3, "Decoding message S1ap_InitialUEMessage_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_InitialUEMessage_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_InitialUEMessage, (void**)&s1ap_InitialUEMessage_p); @@ -760,14 +702,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_InitialUEMessage_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_NAS_PDU: @@ -775,14 +715,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( S1ap_NAS_PDU_t *s1apNASPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NAS_PDU, (void**)&s1apNASPDU_p); if (tempDecoded < 0 || s1apNASPDU_p == NULL) { - d_error("Decoding of IE nas_pdu failed\n"); + d_error("Decoding of IE nas_pdu failed\n"); if (s1apNASPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); memcpy(&s1ap_InitialUEMessage_IEs->nas_pdu, s1apNASPDU_p, sizeof(S1ap_NAS_PDU_t)); } break; case S1ap_ProtocolIE_ID_id_TAI: @@ -790,14 +728,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( S1ap_TAI_t *s1apTAI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAI, (void**)&s1apTAI_p); if (tempDecoded < 0 || s1apTAI_p == NULL) { - d_error("Decoding of IE tai failed\n"); + d_error("Decoding of IE tai failed\n"); if (s1apTAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAI, s1apTAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAI, s1apTAI_p); memcpy(&s1ap_InitialUEMessage_IEs->tai, s1apTAI_p, sizeof(S1ap_TAI_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -805,14 +741,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_InitialUEMessage_IEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_RRC_Establishment_Cause: @@ -820,14 +754,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( S1ap_RRC_Establishment_Cause_t *s1apRRCEstablishmentCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RRC_Establishment_Cause, (void**)&s1apRRCEstablishmentCause_p); if (tempDecoded < 0 || s1apRRCEstablishmentCause_p == NULL) { - d_error("Decoding of IE rrC_Establishment_Cause failed\n"); + d_error("Decoding of IE rrC_Establishment_Cause failed\n"); if (s1apRRCEstablishmentCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RRC_Establishment_Cause, s1apRRCEstablishmentCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RRC_Establishment_Cause, s1apRRCEstablishmentCause_p); memcpy(&s1ap_InitialUEMessage_IEs->rrC_Establishment_Cause, s1apRRCEstablishmentCause_p, sizeof(S1ap_RRC_Establishment_Cause_t)); } break; /* Optional field */ @@ -837,14 +769,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_S_TMSI_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_S_TMSI, (void**)&s1apSTMSI_p); if (tempDecoded < 0 || s1apSTMSI_p == NULL) { - d_error("Decoding of IE s_tmsi failed\n"); + d_error("Decoding of IE s_tmsi failed\n"); if (s1apSTMSI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_S_TMSI, s1apSTMSI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_S_TMSI, s1apSTMSI_p); memcpy(&s1ap_InitialUEMessage_IEs->s_tmsi, s1apSTMSI_p, sizeof(S1ap_S_TMSI_t)); } break; /* Optional field */ @@ -854,14 +784,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_CSG_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_Id, (void**)&s1apCSGId_p); if (tempDecoded < 0 || s1apCSGId_p == NULL) { - d_error("Decoding of IE csG_Id failed\n"); + d_error("Decoding of IE csG_Id failed\n"); if (s1apCSGId_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_Id, s1apCSGId_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_Id, s1apCSGId_p); memcpy(&s1ap_InitialUEMessage_IEs->csG_Id, s1apCSGId_p, sizeof(S1ap_CSG_Id_t)); } break; /* Optional field */ @@ -871,14 +799,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_GUMMEI_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEI, (void**)&s1apGUMMEI_p); if (tempDecoded < 0 || s1apGUMMEI_p == NULL) { - d_error("Decoding of IE gummei_id failed\n"); + d_error("Decoding of IE gummei_id failed\n"); if (s1apGUMMEI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); memcpy(&s1ap_InitialUEMessage_IEs->gummei_id, s1apGUMMEI_p, sizeof(S1ap_GUMMEI_t)); } break; /* Optional field */ @@ -888,14 +814,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_CELLACCESSMODE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CellAccessMode, (void**)&s1apCellAccessMode_p); if (tempDecoded < 0 || s1apCellAccessMode_p == NULL) { - d_error("Decoding of IE cellAccessMode failed\n"); + d_error("Decoding of IE cellAccessMode failed\n"); if (s1apCellAccessMode_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); memcpy(&s1ap_InitialUEMessage_IEs->cellAccessMode, s1apCellAccessMode_p, sizeof(S1ap_CellAccessMode_t)); } break; /* Optional field */ @@ -905,14 +829,12 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_GW_TRANSPORTLAYERADDRESS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TransportLayerAddress, (void**)&s1apTransportLayerAddress_p); if (tempDecoded < 0 || s1apTransportLayerAddress_p == NULL) { - d_error("Decoding of IE gW_TransportLayerAddress failed\n"); + d_error("Decoding of IE gW_TransportLayerAddress failed\n"); if (s1apTransportLayerAddress_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); memcpy(&s1ap_InitialUEMessage_IEs->gW_TransportLayerAddress, s1apTransportLayerAddress_p, sizeof(S1ap_TransportLayerAddress_t)); } break; /* Optional field */ @@ -922,18 +844,16 @@ int s1ap_decode_s1ap_initialuemessage_ies( s1ap_InitialUEMessage_IEs->presenceMask |= S1AP_INITIALUEMESSAGE_IES_RELAYNODE_INDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RelayNode_Indicator, (void**)&s1apRelayNodeIndicator_p); if (tempDecoded < 0 || s1apRelayNodeIndicator_p == NULL) { - d_error("Decoding of IE relayNode_Indicator failed\n"); + d_error("Decoding of IE relayNode_Indicator failed\n"); if (s1apRelayNodeIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RelayNode_Indicator, s1apRelayNodeIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RelayNode_Indicator, s1apRelayNodeIndicator_p); memcpy(&s1ap_InitialUEMessage_IEs->relayNode_Indicator, s1apRelayNodeIndicator_p, sizeof(S1ap_RelayNode_Indicator_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_initialuemessage_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_initialuemessage_ies\n", (int)ie_p->id); return -1; } } @@ -951,7 +871,7 @@ int s1ap_decode_s1ap_killrequesties( assert(any_p != NULL); assert(s1ap_KillRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_KillRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_KillRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_KillRequest, (void**)&s1ap_KillRequest_p); @@ -964,14 +884,12 @@ int s1ap_decode_s1ap_killrequesties( S1ap_MessageIdentifier_t *s1apMessageIdentifier_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MessageIdentifier, (void**)&s1apMessageIdentifier_p); if (tempDecoded < 0 || s1apMessageIdentifier_p == NULL) { - d_error("Decoding of IE messageIdentifier failed\n"); + d_error("Decoding of IE messageIdentifier failed\n"); if (s1apMessageIdentifier_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); memcpy(&s1ap_KillRequestIEs->messageIdentifier, s1apMessageIdentifier_p, sizeof(S1ap_MessageIdentifier_t)); } break; case S1ap_ProtocolIE_ID_id_SerialNumber: @@ -979,14 +897,12 @@ int s1ap_decode_s1ap_killrequesties( S1ap_SerialNumber_t *s1apSerialNumber_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SerialNumber, (void**)&s1apSerialNumber_p); if (tempDecoded < 0 || s1apSerialNumber_p == NULL) { - d_error("Decoding of IE serialNumber failed\n"); + d_error("Decoding of IE serialNumber failed\n"); if (s1apSerialNumber_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); memcpy(&s1ap_KillRequestIEs->serialNumber, s1apSerialNumber_p, sizeof(S1ap_SerialNumber_t)); } break; /* Optional field */ @@ -996,18 +912,16 @@ int s1ap_decode_s1ap_killrequesties( s1ap_KillRequestIEs->presenceMask |= S1AP_KILLREQUESTIES_WARNINGAREALIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_WarningAreaList, (void**)&s1apWarningAreaList_p); if (tempDecoded < 0 || s1apWarningAreaList_p == NULL) { - d_error("Decoding of IE warningAreaList failed\n"); + d_error("Decoding of IE warningAreaList failed\n"); if (s1apWarningAreaList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_WarningAreaList, s1apWarningAreaList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_WarningAreaList, s1apWarningAreaList_p); memcpy(&s1ap_KillRequestIEs->warningAreaList, s1apWarningAreaList_p, sizeof(S1ap_WarningAreaList_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_killrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_killrequesties\n", (int)ie_p->id); return -1; } } @@ -1025,7 +939,7 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( assert(any_p != NULL); assert(s1ap_WriteReplaceWarningRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_WriteReplaceWarningRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_WriteReplaceWarningRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_WriteReplaceWarningRequest, (void**)&s1ap_WriteReplaceWarningRequest_p); @@ -1038,14 +952,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( S1ap_MessageIdentifier_t *s1apMessageIdentifier_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MessageIdentifier, (void**)&s1apMessageIdentifier_p); if (tempDecoded < 0 || s1apMessageIdentifier_p == NULL) { - d_error("Decoding of IE messageIdentifier failed\n"); + d_error("Decoding of IE messageIdentifier failed\n"); if (s1apMessageIdentifier_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->messageIdentifier, s1apMessageIdentifier_p, sizeof(S1ap_MessageIdentifier_t)); } break; case S1ap_ProtocolIE_ID_id_SerialNumber: @@ -1053,14 +965,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( S1ap_SerialNumber_t *s1apSerialNumber_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SerialNumber, (void**)&s1apSerialNumber_p); if (tempDecoded < 0 || s1apSerialNumber_p == NULL) { - d_error("Decoding of IE serialNumber failed\n"); + d_error("Decoding of IE serialNumber failed\n"); if (s1apSerialNumber_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->serialNumber, s1apSerialNumber_p, sizeof(S1ap_SerialNumber_t)); } break; /* Optional field */ @@ -1070,14 +980,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_WARNINGAREALIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_WarningAreaList, (void**)&s1apWarningAreaList_p); if (tempDecoded < 0 || s1apWarningAreaList_p == NULL) { - d_error("Decoding of IE warningAreaList failed\n"); + d_error("Decoding of IE warningAreaList failed\n"); if (s1apWarningAreaList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_WarningAreaList, s1apWarningAreaList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_WarningAreaList, s1apWarningAreaList_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->warningAreaList, s1apWarningAreaList_p, sizeof(S1ap_WarningAreaList_t)); } break; case S1ap_ProtocolIE_ID_id_RepetitionPeriod: @@ -1085,14 +993,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( S1ap_RepetitionPeriod_t *s1apRepetitionPeriod_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RepetitionPeriod, (void**)&s1apRepetitionPeriod_p); if (tempDecoded < 0 || s1apRepetitionPeriod_p == NULL) { - d_error("Decoding of IE repetitionPeriod failed\n"); + d_error("Decoding of IE repetitionPeriod failed\n"); if (s1apRepetitionPeriod_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RepetitionPeriod, s1apRepetitionPeriod_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RepetitionPeriod, s1apRepetitionPeriod_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->repetitionPeriod, s1apRepetitionPeriod_p, sizeof(S1ap_RepetitionPeriod_t)); } break; /* Optional field */ @@ -1102,14 +1008,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_EXTENDEDREPETITIONPERIOD_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ExtendedRepetitionPeriod, (void**)&s1apExtendedRepetitionPeriod_p); if (tempDecoded < 0 || s1apExtendedRepetitionPeriod_p == NULL) { - d_error("Decoding of IE extendedRepetitionPeriod failed\n"); + d_error("Decoding of IE extendedRepetitionPeriod failed\n"); if (s1apExtendedRepetitionPeriod_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ExtendedRepetitionPeriod, s1apExtendedRepetitionPeriod_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ExtendedRepetitionPeriod, s1apExtendedRepetitionPeriod_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->extendedRepetitionPeriod, s1apExtendedRepetitionPeriod_p, sizeof(S1ap_ExtendedRepetitionPeriod_t)); } break; case S1ap_ProtocolIE_ID_id_NumberofBroadcastRequest: @@ -1117,14 +1021,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( S1ap_NumberofBroadcastRequest_t *s1apNumberofBroadcastRequest_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NumberofBroadcastRequest, (void**)&s1apNumberofBroadcastRequest_p); if (tempDecoded < 0 || s1apNumberofBroadcastRequest_p == NULL) { - d_error("Decoding of IE numberofBroadcastRequest failed\n"); + d_error("Decoding of IE numberofBroadcastRequest failed\n"); if (s1apNumberofBroadcastRequest_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NumberofBroadcastRequest, s1apNumberofBroadcastRequest_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NumberofBroadcastRequest, s1apNumberofBroadcastRequest_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->numberofBroadcastRequest, s1apNumberofBroadcastRequest_p, sizeof(S1ap_NumberofBroadcastRequest_t)); } break; /* Optional field */ @@ -1134,14 +1036,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_WARNINGTYPE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_WarningType, (void**)&s1apWarningType_p); if (tempDecoded < 0 || s1apWarningType_p == NULL) { - d_error("Decoding of IE warningType failed\n"); + d_error("Decoding of IE warningType failed\n"); if (s1apWarningType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_WarningType, s1apWarningType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_WarningType, s1apWarningType_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->warningType, s1apWarningType_p, sizeof(S1ap_WarningType_t)); } break; /* Optional field */ @@ -1151,14 +1051,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_WARNINGSECURITYINFO_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_WarningSecurityInfo, (void**)&s1apWarningSecurityInfo_p); if (tempDecoded < 0 || s1apWarningSecurityInfo_p == NULL) { - d_error("Decoding of IE warningSecurityInfo failed\n"); + d_error("Decoding of IE warningSecurityInfo failed\n"); if (s1apWarningSecurityInfo_p) ASN_STRUCT_FREE(asn_DEF_S1ap_WarningSecurityInfo, s1apWarningSecurityInfo_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_WarningSecurityInfo, s1apWarningSecurityInfo_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->warningSecurityInfo, s1apWarningSecurityInfo_p, sizeof(S1ap_WarningSecurityInfo_t)); } break; /* Optional field */ @@ -1168,14 +1066,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_DATACODINGSCHEME_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_DataCodingScheme, (void**)&s1apDataCodingScheme_p); if (tempDecoded < 0 || s1apDataCodingScheme_p == NULL) { - d_error("Decoding of IE dataCodingScheme failed\n"); + d_error("Decoding of IE dataCodingScheme failed\n"); if (s1apDataCodingScheme_p) ASN_STRUCT_FREE(asn_DEF_S1ap_DataCodingScheme, s1apDataCodingScheme_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_DataCodingScheme, s1apDataCodingScheme_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->dataCodingScheme, s1apDataCodingScheme_p, sizeof(S1ap_DataCodingScheme_t)); } break; /* Optional field */ @@ -1185,14 +1081,12 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_WARNINGMESSAGECONTENTS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_WarningMessageContents, (void**)&s1apWarningMessageContents_p); if (tempDecoded < 0 || s1apWarningMessageContents_p == NULL) { - d_error("Decoding of IE warningMessageContents failed\n"); + d_error("Decoding of IE warningMessageContents failed\n"); if (s1apWarningMessageContents_p) ASN_STRUCT_FREE(asn_DEF_S1ap_WarningMessageContents, s1apWarningMessageContents_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_WarningMessageContents, s1apWarningMessageContents_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->warningMessageContents, s1apWarningMessageContents_p, sizeof(S1ap_WarningMessageContents_t)); } break; /* Optional field */ @@ -1202,18 +1096,16 @@ int s1ap_decode_s1ap_writereplacewarningrequesties( s1ap_WriteReplaceWarningRequestIEs->presenceMask |= S1AP_WRITEREPLACEWARNINGREQUESTIES_CONCURRENTWARNINGMESSAGEINDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ConcurrentWarningMessageIndicator, (void**)&s1apConcurrentWarningMessageIndicator_p); if (tempDecoded < 0 || s1apConcurrentWarningMessageIndicator_p == NULL) { - d_error("Decoding of IE concurrentWarningMessageIndicator failed\n"); + d_error("Decoding of IE concurrentWarningMessageIndicator failed\n"); if (s1apConcurrentWarningMessageIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ConcurrentWarningMessageIndicator, s1apConcurrentWarningMessageIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ConcurrentWarningMessageIndicator, s1apConcurrentWarningMessageIndicator_p); memcpy(&s1ap_WriteReplaceWarningRequestIEs->concurrentWarningMessageIndicator, s1apConcurrentWarningMessageIndicator_p, sizeof(S1ap_ConcurrentWarningMessageIndicator_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_writereplacewarningrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_writereplacewarningrequesties\n", (int)ie_p->id); return -1; } } @@ -1231,7 +1123,7 @@ int s1ap_decode_s1ap_uecapabilityinfoindicationies( assert(any_p != NULL); assert(s1ap_UECapabilityInfoIndicationIEs != NULL); - d_trace(3, "Decoding message S1ap_UECapabilityInfoIndicationIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UECapabilityInfoIndicationIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UECapabilityInfoIndication, (void**)&s1ap_UECapabilityInfoIndication_p); @@ -1244,14 +1136,12 @@ int s1ap_decode_s1ap_uecapabilityinfoindicationies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UECapabilityInfoIndicationIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1259,14 +1149,12 @@ int s1ap_decode_s1ap_uecapabilityinfoindicationies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UECapabilityInfoIndicationIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_UERadioCapability: @@ -1274,18 +1162,16 @@ int s1ap_decode_s1ap_uecapabilityinfoindicationies( S1ap_UERadioCapability_t *s1apUERadioCapability_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UERadioCapability, (void**)&s1apUERadioCapability_p); if (tempDecoded < 0 || s1apUERadioCapability_p == NULL) { - d_error("Decoding of IE ueRadioCapability failed\n"); + d_error("Decoding of IE ueRadioCapability failed\n"); if (s1apUERadioCapability_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UERadioCapability, s1apUERadioCapability_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UERadioCapability, s1apUERadioCapability_p); memcpy(&s1ap_UECapabilityInfoIndicationIEs->ueRadioCapability, s1apUERadioCapability_p, sizeof(S1ap_UERadioCapability_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecapabilityinfoindicationies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecapabilityinfoindicationies\n", (int)ie_p->id); return -1; } } @@ -1303,7 +1189,7 @@ int s1ap_decode_s1ap_locationreportingfailureindicationies( assert(any_p != NULL); assert(s1ap_LocationReportingFailureIndicationIEs != NULL); - d_trace(3, "Decoding message S1ap_LocationReportingFailureIndicationIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_LocationReportingFailureIndicationIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_LocationReportingFailureIndication, (void**)&s1ap_LocationReportingFailureIndication_p); @@ -1316,14 +1202,12 @@ int s1ap_decode_s1ap_locationreportingfailureindicationies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_LocationReportingFailureIndicationIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1331,14 +1215,12 @@ int s1ap_decode_s1ap_locationreportingfailureindicationies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_LocationReportingFailureIndicationIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -1346,18 +1228,16 @@ int s1ap_decode_s1ap_locationreportingfailureindicationies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_LocationReportingFailureIndicationIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_locationreportingfailureindicationies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_locationreportingfailureindicationies\n", (int)ie_p->id); return -1; } } @@ -1375,7 +1255,7 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( assert(any_p != NULL); assert(s1ap_InitialContextSetupRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_InitialContextSetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_InitialContextSetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_InitialContextSetupRequest, (void**)&s1ap_InitialContextSetupRequest_p); @@ -1388,14 +1268,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_InitialContextSetupRequestIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1403,14 +1281,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_InitialContextSetupRequestIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_uEaggregateMaximumBitrate: @@ -1418,14 +1294,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_UEAggregateMaximumBitrate_t *s1apUEAggregateMaximumBitrate_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_InitialContextSetupRequestIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeSetupListCtxtSUReq: @@ -1433,16 +1307,14 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_E_RABToBeSetupListCtxtSUReq_t *s1apERABToBeSetupListCtxtSUReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupListCtxtSUReq, (void**)&s1apERABToBeSetupListCtxtSUReq_p); if (tempDecoded < 0 || s1apERABToBeSetupListCtxtSUReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupListCtxtSUReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupListCtxtSUReq failed\n"); if (s1apERABToBeSetupListCtxtSUReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListCtxtSUReq, s1apERABToBeSetupListCtxtSUReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupListCtxtSUReq, s1apERABToBeSetupListCtxtSUReq_p); if (s1ap_decode_s1ap_e_rabtobesetuplistctxtsureq(&s1ap_InitialContextSetupRequestIEs->e_RABToBeSetupListCtxtSUReq, s1apERABToBeSetupListCtxtSUReq_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeSetupListCtxtSUReq failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeSetupListCtxtSUReq failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListCtxtSUReq, s1apERABToBeSetupListCtxtSUReq_p); } } break; @@ -1451,14 +1323,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_UESecurityCapabilities_t *s1apUESecurityCapabilities_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UESecurityCapabilities, (void**)&s1apUESecurityCapabilities_p); if (tempDecoded < 0 || s1apUESecurityCapabilities_p == NULL) { - d_error("Decoding of IE ueSecurityCapabilities failed\n"); + d_error("Decoding of IE ueSecurityCapabilities failed\n"); if (s1apUESecurityCapabilities_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); memcpy(&s1ap_InitialContextSetupRequestIEs->ueSecurityCapabilities, s1apUESecurityCapabilities_p, sizeof(S1ap_UESecurityCapabilities_t)); } break; case S1ap_ProtocolIE_ID_id_SecurityKey: @@ -1466,14 +1336,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( S1ap_SecurityKey_t *s1apSecurityKey_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SecurityKey, (void**)&s1apSecurityKey_p); if (tempDecoded < 0 || s1apSecurityKey_p == NULL) { - d_error("Decoding of IE securityKey failed\n"); + d_error("Decoding of IE securityKey failed\n"); if (s1apSecurityKey_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SecurityKey, s1apSecurityKey_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SecurityKey, s1apSecurityKey_p); memcpy(&s1ap_InitialContextSetupRequestIEs->securityKey, s1apSecurityKey_p, sizeof(S1ap_SecurityKey_t)); } break; /* Optional field */ @@ -1483,14 +1351,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_TRACEACTIVATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TraceActivation, (void**)&s1apTraceActivation_p); if (tempDecoded < 0 || s1apTraceActivation_p == NULL) { - d_error("Decoding of IE traceActivation failed\n"); + d_error("Decoding of IE traceActivation failed\n"); if (s1apTraceActivation_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); memcpy(&s1ap_InitialContextSetupRequestIEs->traceActivation, s1apTraceActivation_p, sizeof(S1ap_TraceActivation_t)); } break; /* Optional field */ @@ -1500,14 +1366,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_HANDOVERRESTRICTIONLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverRestrictionList, (void**)&s1apHandoverRestrictionList_p); if (tempDecoded < 0 || s1apHandoverRestrictionList_p == NULL) { - d_error("Decoding of IE handoverRestrictionList failed\n"); + d_error("Decoding of IE handoverRestrictionList failed\n"); if (s1apHandoverRestrictionList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); memcpy(&s1ap_InitialContextSetupRequestIEs->handoverRestrictionList, s1apHandoverRestrictionList_p, sizeof(S1ap_HandoverRestrictionList_t)); } break; /* Optional field */ @@ -1517,14 +1381,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_UERADIOCAPABILITY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UERadioCapability, (void**)&s1apUERadioCapability_p); if (tempDecoded < 0 || s1apUERadioCapability_p == NULL) { - d_error("Decoding of IE ueRadioCapability failed\n"); + d_error("Decoding of IE ueRadioCapability failed\n"); if (s1apUERadioCapability_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UERadioCapability, s1apUERadioCapability_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UERadioCapability, s1apUERadioCapability_p); memcpy(&s1ap_InitialContextSetupRequestIEs->ueRadioCapability, s1apUERadioCapability_p, sizeof(S1ap_UERadioCapability_t)); } break; /* Optional field */ @@ -1534,14 +1396,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_SUBSCRIBERPROFILEIDFORRFP_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SubscriberProfileIDforRFP, (void**)&s1apSubscriberProfileIDforRFP_p); if (tempDecoded < 0 || s1apSubscriberProfileIDforRFP_p == NULL) { - d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); + d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); if (s1apSubscriberProfileIDforRFP_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); memcpy(&s1ap_InitialContextSetupRequestIEs->subscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p, sizeof(S1ap_SubscriberProfileIDforRFP_t)); } break; /* Optional field */ @@ -1551,14 +1411,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_CSFALLBACKINDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSFallbackIndicator, (void**)&s1apCSFallbackIndicator_p); if (tempDecoded < 0 || s1apCSFallbackIndicator_p == NULL) { - d_error("Decoding of IE csFallbackIndicator failed\n"); + d_error("Decoding of IE csFallbackIndicator failed\n"); if (s1apCSFallbackIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSFallbackIndicator, s1apCSFallbackIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSFallbackIndicator, s1apCSFallbackIndicator_p); memcpy(&s1ap_InitialContextSetupRequestIEs->csFallbackIndicator, s1apCSFallbackIndicator_p, sizeof(S1ap_CSFallbackIndicator_t)); } break; /* Optional field */ @@ -1568,14 +1426,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_SRVCCOPERATIONPOSSIBLE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SRVCCOperationPossible, (void**)&s1apSRVCCOperationPossible_p); if (tempDecoded < 0 || s1apSRVCCOperationPossible_p == NULL) { - d_error("Decoding of IE srvccOperationPossible failed\n"); + d_error("Decoding of IE srvccOperationPossible failed\n"); if (s1apSRVCCOperationPossible_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SRVCCOperationPossible, s1apSRVCCOperationPossible_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SRVCCOperationPossible, s1apSRVCCOperationPossible_p); memcpy(&s1ap_InitialContextSetupRequestIEs->srvccOperationPossible, s1apSRVCCOperationPossible_p, sizeof(S1ap_SRVCCOperationPossible_t)); } break; /* Optional field */ @@ -1585,14 +1441,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_CSGMEMBERSHIPSTATUS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSGMembershipStatus, (void**)&s1apCSGMembershipStatus_p); if (tempDecoded < 0 || s1apCSGMembershipStatus_p == NULL) { - d_error("Decoding of IE csgMembershipStatus failed\n"); + d_error("Decoding of IE csgMembershipStatus failed\n"); if (s1apCSGMembershipStatus_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); memcpy(&s1ap_InitialContextSetupRequestIEs->csgMembershipStatus, s1apCSGMembershipStatus_p, sizeof(S1ap_CSGMembershipStatus_t)); } break; /* Optional field */ @@ -1602,14 +1456,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_REGISTEREDLAI_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LAI, (void**)&s1apLAI_p); if (tempDecoded < 0 || s1apLAI_p == NULL) { - d_error("Decoding of IE registeredLAI failed\n"); + d_error("Decoding of IE registeredLAI failed\n"); if (s1apLAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LAI, s1apLAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LAI, s1apLAI_p); memcpy(&s1ap_InitialContextSetupRequestIEs->registeredLAI, s1apLAI_p, sizeof(S1ap_LAI_t)); } break; /* Optional field */ @@ -1619,14 +1471,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_GUMMEI_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEI, (void**)&s1apGUMMEI_p); if (tempDecoded < 0 || s1apGUMMEI_p == NULL) { - d_error("Decoding of IE gummei_id failed\n"); + d_error("Decoding of IE gummei_id failed\n"); if (s1apGUMMEI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); memcpy(&s1ap_InitialContextSetupRequestIEs->gummei_id, s1apGUMMEI_p, sizeof(S1ap_GUMMEI_t)); } break; /* Optional field */ @@ -1636,14 +1486,12 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_MME_UE_S1AP_ID_2_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_InitialContextSetupRequestIEs->mme_ue_s1ap_id_2, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -1653,18 +1501,16 @@ int s1ap_decode_s1ap_initialcontextsetuprequesties( s1ap_InitialContextSetupRequestIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPREQUESTIES_MANAGEMENTBASEDMDTALLOWED_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ManagementBasedMDTAllowed, (void**)&s1apManagementBasedMDTAllowed_p); if (tempDecoded < 0 || s1apManagementBasedMDTAllowed_p == NULL) { - d_error("Decoding of IE managementBasedMDTAllowed failed\n"); + d_error("Decoding of IE managementBasedMDTAllowed failed\n"); if (s1apManagementBasedMDTAllowed_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ManagementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ManagementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p); memcpy(&s1ap_InitialContextSetupRequestIEs->managementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p, sizeof(S1ap_ManagementBasedMDTAllowed_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetuprequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetuprequesties\n", (int)ie_p->id); return -1; } } @@ -1682,7 +1528,7 @@ int s1ap_decode_s1ap_locationreporties( assert(any_p != NULL); assert(s1ap_LocationReportIEs != NULL); - d_trace(3, "Decoding message S1ap_LocationReportIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_LocationReportIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_LocationReport, (void**)&s1ap_LocationReport_p); @@ -1695,14 +1541,12 @@ int s1ap_decode_s1ap_locationreporties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_LocationReportIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1710,14 +1554,12 @@ int s1ap_decode_s1ap_locationreporties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_LocationReportIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -1725,14 +1567,12 @@ int s1ap_decode_s1ap_locationreporties( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_LocationReportIEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_TAI: @@ -1740,14 +1580,12 @@ int s1ap_decode_s1ap_locationreporties( S1ap_TAI_t *s1apTAI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAI, (void**)&s1apTAI_p); if (tempDecoded < 0 || s1apTAI_p == NULL) { - d_error("Decoding of IE tai failed\n"); + d_error("Decoding of IE tai failed\n"); if (s1apTAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAI, s1apTAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAI, s1apTAI_p); memcpy(&s1ap_LocationReportIEs->tai, s1apTAI_p, sizeof(S1ap_TAI_t)); } break; case S1ap_ProtocolIE_ID_id_RequestType: @@ -1755,18 +1593,16 @@ int s1ap_decode_s1ap_locationreporties( S1ap_RequestType_t *s1apRequestType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RequestType, (void**)&s1apRequestType_p); if (tempDecoded < 0 || s1apRequestType_p == NULL) { - d_error("Decoding of IE requestType failed\n"); + d_error("Decoding of IE requestType failed\n"); if (s1apRequestType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RequestType, s1apRequestType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RequestType, s1apRequestType_p); memcpy(&s1ap_LocationReportIEs->requestType, s1apRequestType_p, sizeof(S1ap_RequestType_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_locationreporties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_locationreporties\n", (int)ie_p->id); return -1; } } @@ -1784,7 +1620,7 @@ int s1ap_decode_s1ap_uplinknastransport_ies( assert(any_p != NULL); assert(s1ap_UplinkNASTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_UplinkNASTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UplinkNASTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UplinkNASTransport, (void**)&s1ap_UplinkNASTransport_p); @@ -1797,14 +1633,12 @@ int s1ap_decode_s1ap_uplinknastransport_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UplinkNASTransport_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1812,14 +1646,12 @@ int s1ap_decode_s1ap_uplinknastransport_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UplinkNASTransport_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_NAS_PDU: @@ -1827,14 +1659,12 @@ int s1ap_decode_s1ap_uplinknastransport_ies( S1ap_NAS_PDU_t *s1apNASPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NAS_PDU, (void**)&s1apNASPDU_p); if (tempDecoded < 0 || s1apNASPDU_p == NULL) { - d_error("Decoding of IE nas_pdu failed\n"); + d_error("Decoding of IE nas_pdu failed\n"); if (s1apNASPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); memcpy(&s1ap_UplinkNASTransport_IEs->nas_pdu, s1apNASPDU_p, sizeof(S1ap_NAS_PDU_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -1842,14 +1672,12 @@ int s1ap_decode_s1ap_uplinknastransport_ies( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_UplinkNASTransport_IEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_TAI: @@ -1857,14 +1685,12 @@ int s1ap_decode_s1ap_uplinknastransport_ies( S1ap_TAI_t *s1apTAI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAI, (void**)&s1apTAI_p); if (tempDecoded < 0 || s1apTAI_p == NULL) { - d_error("Decoding of IE tai failed\n"); + d_error("Decoding of IE tai failed\n"); if (s1apTAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAI, s1apTAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAI, s1apTAI_p); memcpy(&s1ap_UplinkNASTransport_IEs->tai, s1apTAI_p, sizeof(S1ap_TAI_t)); } break; /* Optional field */ @@ -1874,18 +1700,16 @@ int s1ap_decode_s1ap_uplinknastransport_ies( s1ap_UplinkNASTransport_IEs->presenceMask |= S1AP_UPLINKNASTRANSPORT_IES_GW_TRANSPORTLAYERADDRESS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TransportLayerAddress, (void**)&s1apTransportLayerAddress_p); if (tempDecoded < 0 || s1apTransportLayerAddress_p == NULL) { - d_error("Decoding of IE gW_TransportLayerAddress failed\n"); + d_error("Decoding of IE gW_TransportLayerAddress failed\n"); if (s1apTransportLayerAddress_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); memcpy(&s1ap_UplinkNASTransport_IEs->gW_TransportLayerAddress, s1apTransportLayerAddress_p, sizeof(S1ap_TransportLayerAddress_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinknastransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinknastransport_ies\n", (int)ie_p->id); return -1; } } @@ -1903,7 +1727,7 @@ int s1ap_decode_s1ap_uecontextmodificationresponseies( assert(any_p != NULL); assert(s1ap_UEContextModificationResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextModificationResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextModificationResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextModificationResponse, (void**)&s1ap_UEContextModificationResponse_p); @@ -1916,14 +1740,12 @@ int s1ap_decode_s1ap_uecontextmodificationresponseies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UEContextModificationResponseIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -1931,14 +1753,12 @@ int s1ap_decode_s1ap_uecontextmodificationresponseies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UEContextModificationResponseIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -1948,18 +1768,16 @@ int s1ap_decode_s1ap_uecontextmodificationresponseies( s1ap_UEContextModificationResponseIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_UEContextModificationResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationresponseies\n", (int)ie_p->id); return -1; } } @@ -1977,7 +1795,7 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( assert(any_p != NULL); assert(s1ap_UEContextModificationRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextModificationRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextModificationRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextModificationRequest, (void**)&s1ap_UEContextModificationRequest_p); @@ -1990,14 +1808,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UEContextModificationRequestIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -2005,14 +1821,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UEContextModificationRequestIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -2022,14 +1836,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_SECURITYKEY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SecurityKey, (void**)&s1apSecurityKey_p); if (tempDecoded < 0 || s1apSecurityKey_p == NULL) { - d_error("Decoding of IE securityKey failed\n"); + d_error("Decoding of IE securityKey failed\n"); if (s1apSecurityKey_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SecurityKey, s1apSecurityKey_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SecurityKey, s1apSecurityKey_p); memcpy(&s1ap_UEContextModificationRequestIEs->securityKey, s1apSecurityKey_p, sizeof(S1ap_SecurityKey_t)); } break; /* Optional field */ @@ -2039,14 +1851,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_SUBSCRIBERPROFILEIDFORRFP_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SubscriberProfileIDforRFP, (void**)&s1apSubscriberProfileIDforRFP_p); if (tempDecoded < 0 || s1apSubscriberProfileIDforRFP_p == NULL) { - d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); + d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); if (s1apSubscriberProfileIDforRFP_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); memcpy(&s1ap_UEContextModificationRequestIEs->subscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p, sizeof(S1ap_SubscriberProfileIDforRFP_t)); } break; /* Optional field */ @@ -2056,14 +1866,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_UEAGGREGATEMAXIMUMBITRATE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_UEContextModificationRequestIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; /* Optional field */ @@ -2073,14 +1881,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_CSFALLBACKINDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSFallbackIndicator, (void**)&s1apCSFallbackIndicator_p); if (tempDecoded < 0 || s1apCSFallbackIndicator_p == NULL) { - d_error("Decoding of IE csFallbackIndicator failed\n"); + d_error("Decoding of IE csFallbackIndicator failed\n"); if (s1apCSFallbackIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSFallbackIndicator, s1apCSFallbackIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSFallbackIndicator, s1apCSFallbackIndicator_p); memcpy(&s1ap_UEContextModificationRequestIEs->csFallbackIndicator, s1apCSFallbackIndicator_p, sizeof(S1ap_CSFallbackIndicator_t)); } break; /* Optional field */ @@ -2090,14 +1896,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_UESECURITYCAPABILITIES_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UESecurityCapabilities, (void**)&s1apUESecurityCapabilities_p); if (tempDecoded < 0 || s1apUESecurityCapabilities_p == NULL) { - d_error("Decoding of IE ueSecurityCapabilities failed\n"); + d_error("Decoding of IE ueSecurityCapabilities failed\n"); if (s1apUESecurityCapabilities_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); memcpy(&s1ap_UEContextModificationRequestIEs->ueSecurityCapabilities, s1apUESecurityCapabilities_p, sizeof(S1ap_UESecurityCapabilities_t)); } break; /* Optional field */ @@ -2107,14 +1911,12 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_CSGMEMBERSHIPSTATUS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSGMembershipStatus, (void**)&s1apCSGMembershipStatus_p); if (tempDecoded < 0 || s1apCSGMembershipStatus_p == NULL) { - d_error("Decoding of IE csgMembershipStatus failed\n"); + d_error("Decoding of IE csgMembershipStatus failed\n"); if (s1apCSGMembershipStatus_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); memcpy(&s1ap_UEContextModificationRequestIEs->csgMembershipStatus, s1apCSGMembershipStatus_p, sizeof(S1ap_CSGMembershipStatus_t)); } break; /* Optional field */ @@ -2124,18 +1926,16 @@ int s1ap_decode_s1ap_uecontextmodificationrequesties( s1ap_UEContextModificationRequestIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONREQUESTIES_REGISTEREDLAI_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LAI, (void**)&s1apLAI_p); if (tempDecoded < 0 || s1apLAI_p == NULL) { - d_error("Decoding of IE registeredLAI failed\n"); + d_error("Decoding of IE registeredLAI failed\n"); if (s1apLAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LAI, s1apLAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LAI, s1apLAI_p); memcpy(&s1ap_UEContextModificationRequestIEs->registeredLAI, s1apLAI_p, sizeof(S1ap_LAI_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationrequesties\n", (int)ie_p->id); return -1; } } @@ -2153,7 +1953,7 @@ int s1ap_decode_s1ap_locationreportingcontrolies( assert(any_p != NULL); assert(s1ap_LocationReportingControlIEs != NULL); - d_trace(3, "Decoding message S1ap_LocationReportingControlIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_LocationReportingControlIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_LocationReportingControl, (void**)&s1ap_LocationReportingControl_p); @@ -2166,14 +1966,12 @@ int s1ap_decode_s1ap_locationreportingcontrolies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_LocationReportingControlIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -2181,14 +1979,12 @@ int s1ap_decode_s1ap_locationreportingcontrolies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_LocationReportingControlIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_RequestType: @@ -2196,18 +1992,16 @@ int s1ap_decode_s1ap_locationreportingcontrolies( S1ap_RequestType_t *s1apRequestType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RequestType, (void**)&s1apRequestType_p); if (tempDecoded < 0 || s1apRequestType_p == NULL) { - d_error("Decoding of IE requestType failed\n"); + d_error("Decoding of IE requestType failed\n"); if (s1apRequestType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RequestType, s1apRequestType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RequestType, s1apRequestType_p); memcpy(&s1ap_LocationReportingControlIEs->requestType, s1apRequestType_p, sizeof(S1ap_RequestType_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_locationreportingcontrolies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_locationreportingcontrolies\n", (int)ie_p->id); return -1; } } @@ -2225,7 +2019,7 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( assert(any_p != NULL); assert(s1ap_UplinkS1cdma2000tunnelingIEs != NULL); - d_trace(3, "Decoding message S1ap_UplinkS1cdma2000tunnelingIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UplinkS1cdma2000tunnelingIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UplinkS1cdma2000tunneling, (void**)&s1ap_UplinkS1cdma2000tunneling_p); @@ -2238,14 +2032,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -2253,14 +2045,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_cdma2000RATType: @@ -2268,14 +2058,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( S1ap_Cdma2000RATType_t *s1apCdma2000RATType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000RATType, (void**)&s1apCdma2000RATType_p); if (tempDecoded < 0 || s1apCdma2000RATType_p == NULL) { - d_error("Decoding of IE cdma2000RATType failed\n"); + d_error("Decoding of IE cdma2000RATType failed\n"); if (s1apCdma2000RATType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000RATType, s1apCdma2000RATType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000RATType, s1apCdma2000RATType_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000RATType, s1apCdma2000RATType_p, sizeof(S1ap_Cdma2000RATType_t)); } break; case S1ap_ProtocolIE_ID_id_cdma2000SectorID: @@ -2283,14 +2071,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( S1ap_Cdma2000SectorID_t *s1apCdma2000SectorID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000SectorID, (void**)&s1apCdma2000SectorID_p); if (tempDecoded < 0 || s1apCdma2000SectorID_p == NULL) { - d_error("Decoding of IE cdma2000SectorID failed\n"); + d_error("Decoding of IE cdma2000SectorID failed\n"); if (s1apCdma2000SectorID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000SectorID, s1apCdma2000SectorID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000SectorID, s1apCdma2000SectorID_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000SectorID, s1apCdma2000SectorID_p, sizeof(S1ap_Cdma2000SectorID_t)); } break; /* Optional field */ @@ -2300,14 +2086,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( s1ap_UplinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_UPLINKS1CDMA2000TUNNELINGIES_CDMA2000HOREQUIREDINDICATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000HORequiredIndication, (void**)&s1apCdma2000HORequiredIndication_p); if (tempDecoded < 0 || s1apCdma2000HORequiredIndication_p == NULL) { - d_error("Decoding of IE cdma2000HORequiredIndication failed\n"); + d_error("Decoding of IE cdma2000HORequiredIndication failed\n"); if (s1apCdma2000HORequiredIndication_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000HORequiredIndication, s1apCdma2000HORequiredIndication_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000HORequiredIndication, s1apCdma2000HORequiredIndication_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000HORequiredIndication, s1apCdma2000HORequiredIndication_p, sizeof(S1ap_Cdma2000HORequiredIndication_t)); } break; /* Optional field */ @@ -2317,14 +2101,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( s1ap_UplinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_UPLINKS1CDMA2000TUNNELINGIES_CDMA2000ONEXSRVCCINFO_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000OneXSRVCCInfo, (void**)&s1apCdma2000OneXSRVCCInfo_p); if (tempDecoded < 0 || s1apCdma2000OneXSRVCCInfo_p == NULL) { - d_error("Decoding of IE cdma2000OneXSRVCCInfo failed\n"); + d_error("Decoding of IE cdma2000OneXSRVCCInfo failed\n"); if (s1apCdma2000OneXSRVCCInfo_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000OneXSRVCCInfo, s1apCdma2000OneXSRVCCInfo_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000OneXSRVCCInfo, s1apCdma2000OneXSRVCCInfo_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000OneXSRVCCInfo, s1apCdma2000OneXSRVCCInfo_p, sizeof(S1ap_Cdma2000OneXSRVCCInfo_t)); } break; /* Optional field */ @@ -2334,14 +2116,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( s1ap_UplinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_UPLINKS1CDMA2000TUNNELINGIES_CDMA2000ONEXRAND_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000OneXRAND, (void**)&s1apCdma2000OneXRAND_p); if (tempDecoded < 0 || s1apCdma2000OneXRAND_p == NULL) { - d_error("Decoding of IE cdma2000OneXRAND failed\n"); + d_error("Decoding of IE cdma2000OneXRAND failed\n"); if (s1apCdma2000OneXRAND_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000OneXRAND, s1apCdma2000OneXRAND_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000OneXRAND, s1apCdma2000OneXRAND_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000OneXRAND, s1apCdma2000OneXRAND_p, sizeof(S1ap_Cdma2000OneXRAND_t)); } break; case S1ap_ProtocolIE_ID_id_cdma2000PDU: @@ -2349,14 +2129,12 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( S1ap_Cdma2000PDU_t *s1apCdma2000PDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000PDU, (void**)&s1apCdma2000PDU_p); if (tempDecoded < 0 || s1apCdma2000PDU_p == NULL) { - d_error("Decoding of IE cdma2000PDU failed\n"); + d_error("Decoding of IE cdma2000PDU failed\n"); if (s1apCdma2000PDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000PDU, s1apCdma2000PDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000PDU, s1apCdma2000PDU_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->cdma2000PDU, s1apCdma2000PDU_p, sizeof(S1ap_Cdma2000PDU_t)); } break; /* Optional field */ @@ -2366,18 +2144,16 @@ int s1ap_decode_s1ap_uplinks1cdma2000tunnelingies( s1ap_UplinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_UPLINKS1CDMA2000TUNNELINGIES_EUTRANROUNDTRIPDELAYESTIMATIONINFO_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRANRoundTripDelayEstimationInfo, (void**)&s1apEUTRANRoundTripDelayEstimationInfo_p); if (tempDecoded < 0 || s1apEUTRANRoundTripDelayEstimationInfo_p == NULL) { - d_error("Decoding of IE eutranRoundTripDelayEstimationInfo failed\n"); + d_error("Decoding of IE eutranRoundTripDelayEstimationInfo failed\n"); if (s1apEUTRANRoundTripDelayEstimationInfo_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRANRoundTripDelayEstimationInfo, s1apEUTRANRoundTripDelayEstimationInfo_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRANRoundTripDelayEstimationInfo, s1apEUTRANRoundTripDelayEstimationInfo_p); memcpy(&s1ap_UplinkS1cdma2000tunnelingIEs->eutranRoundTripDelayEstimationInfo, s1apEUTRANRoundTripDelayEstimationInfo_p, sizeof(S1ap_EUTRANRoundTripDelayEstimationInfo_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinks1cdma2000tunnelingies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinks1cdma2000tunnelingies\n", (int)ie_p->id); return -1; } } @@ -2395,7 +2171,7 @@ int s1ap_decode_s1ap_handoverrequesties( assert(any_p != NULL); assert(s1ap_HandoverRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverRequest, (void**)&s1ap_HandoverRequest_p); @@ -2408,14 +2184,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverRequestIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_HandoverType: @@ -2423,14 +2197,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_HandoverType_t *s1apHandoverType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverType, (void**)&s1apHandoverType_p); if (tempDecoded < 0 || s1apHandoverType_p == NULL) { - d_error("Decoding of IE handoverType failed\n"); + d_error("Decoding of IE handoverType failed\n"); if (s1apHandoverType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverType, s1apHandoverType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverType, s1apHandoverType_p); memcpy(&s1ap_HandoverRequestIEs->handoverType, s1apHandoverType_p, sizeof(S1ap_HandoverType_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -2438,14 +2210,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_HandoverRequestIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; case S1ap_ProtocolIE_ID_id_uEaggregateMaximumBitrate: @@ -2453,14 +2223,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_UEAggregateMaximumBitrate_t *s1apUEAggregateMaximumBitrate_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_HandoverRequestIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeSetupListHOReq: @@ -2468,16 +2236,14 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_E_RABToBeSetupListHOReq_t *s1apERABToBeSetupListHOReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupListHOReq, (void**)&s1apERABToBeSetupListHOReq_p); if (tempDecoded < 0 || s1apERABToBeSetupListHOReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupListHOReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupListHOReq failed\n"); if (s1apERABToBeSetupListHOReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListHOReq, s1apERABToBeSetupListHOReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupListHOReq, s1apERABToBeSetupListHOReq_p); if (s1ap_decode_s1ap_e_rabtobesetuplisthoreq(&s1ap_HandoverRequestIEs->e_RABToBeSetupListHOReq, s1apERABToBeSetupListHOReq_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeSetupListHOReq failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeSetupListHOReq failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListHOReq, s1apERABToBeSetupListHOReq_p); } } break; @@ -2486,14 +2252,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_Source_ToTarget_TransparentContainer_t *s1apSourceToTargetTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, (void**)&s1apSourceToTargetTransparentContainer_p); if (tempDecoded < 0 || s1apSourceToTargetTransparentContainer_p == NULL) { - d_error("Decoding of IE source_ToTarget_TransparentContainer failed\n"); + d_error("Decoding of IE source_ToTarget_TransparentContainer failed\n"); if (s1apSourceToTargetTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); memcpy(&s1ap_HandoverRequestIEs->source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p, sizeof(S1ap_Source_ToTarget_TransparentContainer_t)); } break; case S1ap_ProtocolIE_ID_id_UESecurityCapabilities: @@ -2501,14 +2265,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_UESecurityCapabilities_t *s1apUESecurityCapabilities_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UESecurityCapabilities, (void**)&s1apUESecurityCapabilities_p); if (tempDecoded < 0 || s1apUESecurityCapabilities_p == NULL) { - d_error("Decoding of IE ueSecurityCapabilities failed\n"); + d_error("Decoding of IE ueSecurityCapabilities failed\n"); if (s1apUESecurityCapabilities_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); memcpy(&s1ap_HandoverRequestIEs->ueSecurityCapabilities, s1apUESecurityCapabilities_p, sizeof(S1ap_UESecurityCapabilities_t)); } break; /* Optional field */ @@ -2518,14 +2280,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_HANDOVERRESTRICTIONLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverRestrictionList, (void**)&s1apHandoverRestrictionList_p); if (tempDecoded < 0 || s1apHandoverRestrictionList_p == NULL) { - d_error("Decoding of IE handoverRestrictionList failed\n"); + d_error("Decoding of IE handoverRestrictionList failed\n"); if (s1apHandoverRestrictionList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); memcpy(&s1ap_HandoverRequestIEs->handoverRestrictionList, s1apHandoverRestrictionList_p, sizeof(S1ap_HandoverRestrictionList_t)); } break; /* Optional field */ @@ -2535,14 +2295,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_TRACEACTIVATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TraceActivation, (void**)&s1apTraceActivation_p); if (tempDecoded < 0 || s1apTraceActivation_p == NULL) { - d_error("Decoding of IE traceActivation failed\n"); + d_error("Decoding of IE traceActivation failed\n"); if (s1apTraceActivation_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TraceActivation, s1apTraceActivation_p); memcpy(&s1ap_HandoverRequestIEs->traceActivation, s1apTraceActivation_p, sizeof(S1ap_TraceActivation_t)); } break; /* Optional field */ @@ -2552,14 +2310,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_REQUESTTYPE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RequestType, (void**)&s1apRequestType_p); if (tempDecoded < 0 || s1apRequestType_p == NULL) { - d_error("Decoding of IE requestType failed\n"); + d_error("Decoding of IE requestType failed\n"); if (s1apRequestType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RequestType, s1apRequestType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RequestType, s1apRequestType_p); memcpy(&s1ap_HandoverRequestIEs->requestType, s1apRequestType_p, sizeof(S1ap_RequestType_t)); } break; /* Optional field */ @@ -2569,14 +2325,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_SRVCCOPERATIONPOSSIBLE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SRVCCOperationPossible, (void**)&s1apSRVCCOperationPossible_p); if (tempDecoded < 0 || s1apSRVCCOperationPossible_p == NULL) { - d_error("Decoding of IE srvccOperationPossible failed\n"); + d_error("Decoding of IE srvccOperationPossible failed\n"); if (s1apSRVCCOperationPossible_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SRVCCOperationPossible, s1apSRVCCOperationPossible_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SRVCCOperationPossible, s1apSRVCCOperationPossible_p); memcpy(&s1ap_HandoverRequestIEs->srvccOperationPossible, s1apSRVCCOperationPossible_p, sizeof(S1ap_SRVCCOperationPossible_t)); } break; case S1ap_ProtocolIE_ID_id_SecurityContext: @@ -2584,14 +2338,12 @@ int s1ap_decode_s1ap_handoverrequesties( S1ap_SecurityContext_t *s1apSecurityContext_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SecurityContext, (void**)&s1apSecurityContext_p); if (tempDecoded < 0 || s1apSecurityContext_p == NULL) { - d_error("Decoding of IE securityContext failed\n"); + d_error("Decoding of IE securityContext failed\n"); if (s1apSecurityContext_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SecurityContext, s1apSecurityContext_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SecurityContext, s1apSecurityContext_p); memcpy(&s1ap_HandoverRequestIEs->securityContext, s1apSecurityContext_p, sizeof(S1ap_SecurityContext_t)); } break; /* Optional field */ @@ -2601,14 +2353,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_CSG_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_Id, (void**)&s1apCSGId_p); if (tempDecoded < 0 || s1apCSGId_p == NULL) { - d_error("Decoding of IE csG_Id failed\n"); + d_error("Decoding of IE csG_Id failed\n"); if (s1apCSGId_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_Id, s1apCSGId_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_Id, s1apCSGId_p); memcpy(&s1ap_HandoverRequestIEs->csG_Id, s1apCSGId_p, sizeof(S1ap_CSG_Id_t)); } break; /* Optional field */ @@ -2618,14 +2368,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_CSGMEMBERSHIPSTATUS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSGMembershipStatus, (void**)&s1apCSGMembershipStatus_p); if (tempDecoded < 0 || s1apCSGMembershipStatus_p == NULL) { - d_error("Decoding of IE csgMembershipStatus failed\n"); + d_error("Decoding of IE csgMembershipStatus failed\n"); if (s1apCSGMembershipStatus_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSGMembershipStatus, s1apCSGMembershipStatus_p); memcpy(&s1ap_HandoverRequestIEs->csgMembershipStatus, s1apCSGMembershipStatus_p, sizeof(S1ap_CSGMembershipStatus_t)); } break; /* Optional field */ @@ -2635,14 +2383,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_GUMMEI_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEI, (void**)&s1apGUMMEI_p); if (tempDecoded < 0 || s1apGUMMEI_p == NULL) { - d_error("Decoding of IE gummei_id failed\n"); + d_error("Decoding of IE gummei_id failed\n"); if (s1apGUMMEI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); memcpy(&s1ap_HandoverRequestIEs->gummei_id, s1apGUMMEI_p, sizeof(S1ap_GUMMEI_t)); } break; /* Optional field */ @@ -2652,14 +2398,12 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_MME_UE_S1AP_ID_2_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverRequestIEs->mme_ue_s1ap_id_2, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -2669,18 +2413,16 @@ int s1ap_decode_s1ap_handoverrequesties( s1ap_HandoverRequestIEs->presenceMask |= S1AP_HANDOVERREQUESTIES_MANAGEMENTBASEDMDTALLOWED_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ManagementBasedMDTAllowed, (void**)&s1apManagementBasedMDTAllowed_p); if (tempDecoded < 0 || s1apManagementBasedMDTAllowed_p == NULL) { - d_error("Decoding of IE managementBasedMDTAllowed failed\n"); + d_error("Decoding of IE managementBasedMDTAllowed failed\n"); if (s1apManagementBasedMDTAllowed_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ManagementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ManagementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p); memcpy(&s1ap_HandoverRequestIEs->managementBasedMDTAllowed, s1apManagementBasedMDTAllowed_p, sizeof(S1ap_ManagementBasedMDTAllowed_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequesties\n", (int)ie_p->id); return -1; } } @@ -2698,7 +2440,7 @@ int s1ap_decode_s1ap_handoverrequiredies( assert(any_p != NULL); assert(s1ap_HandoverRequiredIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverRequiredIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverRequiredIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverRequired, (void**)&s1ap_HandoverRequired_p); @@ -2711,14 +2453,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverRequiredIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -2726,14 +2466,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverRequiredIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_HandoverType: @@ -2741,14 +2479,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_HandoverType_t *s1apHandoverType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverType, (void**)&s1apHandoverType_p); if (tempDecoded < 0 || s1apHandoverType_p == NULL) { - d_error("Decoding of IE handoverType failed\n"); + d_error("Decoding of IE handoverType failed\n"); if (s1apHandoverType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverType, s1apHandoverType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverType, s1apHandoverType_p); memcpy(&s1ap_HandoverRequiredIEs->handoverType, s1apHandoverType_p, sizeof(S1ap_HandoverType_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -2756,14 +2492,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_HandoverRequiredIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; case S1ap_ProtocolIE_ID_id_TargetID: @@ -2771,14 +2505,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_TargetID_t *s1apTargetID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TargetID, (void**)&s1apTargetID_p); if (tempDecoded < 0 || s1apTargetID_p == NULL) { - d_error("Decoding of IE targetID failed\n"); + d_error("Decoding of IE targetID failed\n"); if (s1apTargetID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TargetID, s1apTargetID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TargetID, s1apTargetID_p); memcpy(&s1ap_HandoverRequiredIEs->targetID, s1apTargetID_p, sizeof(S1ap_TargetID_t)); } break; /* Optional field */ @@ -2788,14 +2520,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_DIRECT_FORWARDING_PATH_AVAILABILITY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Direct_Forwarding_Path_Availability, (void**)&s1apDirectForwardingPathAvailability_p); if (tempDecoded < 0 || s1apDirectForwardingPathAvailability_p == NULL) { - d_error("Decoding of IE direct_Forwarding_Path_Availability failed\n"); + d_error("Decoding of IE direct_Forwarding_Path_Availability failed\n"); if (s1apDirectForwardingPathAvailability_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Direct_Forwarding_Path_Availability, s1apDirectForwardingPathAvailability_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Direct_Forwarding_Path_Availability, s1apDirectForwardingPathAvailability_p); memcpy(&s1ap_HandoverRequiredIEs->direct_Forwarding_Path_Availability, s1apDirectForwardingPathAvailability_p, sizeof(S1ap_Direct_Forwarding_Path_Availability_t)); } break; /* Optional field */ @@ -2805,14 +2535,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_SRVCCHOINDICATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SRVCCHOIndication, (void**)&s1apSRVCCHOIndication_p); if (tempDecoded < 0 || s1apSRVCCHOIndication_p == NULL) { - d_error("Decoding of IE srvcchoIndication failed\n"); + d_error("Decoding of IE srvcchoIndication failed\n"); if (s1apSRVCCHOIndication_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SRVCCHOIndication, s1apSRVCCHOIndication_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SRVCCHOIndication, s1apSRVCCHOIndication_p); memcpy(&s1ap_HandoverRequiredIEs->srvcchoIndication, s1apSRVCCHOIndication_p, sizeof(S1ap_SRVCCHOIndication_t)); } break; case S1ap_ProtocolIE_ID_id_Source_ToTarget_TransparentContainer: @@ -2820,14 +2548,12 @@ int s1ap_decode_s1ap_handoverrequiredies( S1ap_Source_ToTarget_TransparentContainer_t *s1apSourceToTargetTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, (void**)&s1apSourceToTargetTransparentContainer_p); if (tempDecoded < 0 || s1apSourceToTargetTransparentContainer_p == NULL) { - d_error("Decoding of IE source_ToTarget_TransparentContainer failed\n"); + d_error("Decoding of IE source_ToTarget_TransparentContainer failed\n"); if (s1apSourceToTargetTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); memcpy(&s1ap_HandoverRequiredIEs->source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p, sizeof(S1ap_Source_ToTarget_TransparentContainer_t)); } break; /* Optional field */ @@ -2837,14 +2563,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_SOURCE_TOTARGET_TRANSPARENTCONTAINER_SECONDARY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, (void**)&s1apSourceToTargetTransparentContainer_p); if (tempDecoded < 0 || s1apSourceToTargetTransparentContainer_p == NULL) { - d_error("Decoding of IE source_ToTarget_TransparentContainer_Secondary failed\n"); + d_error("Decoding of IE source_ToTarget_TransparentContainer_Secondary failed\n"); if (s1apSourceToTargetTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Source_ToTarget_TransparentContainer, s1apSourceToTargetTransparentContainer_p); memcpy(&s1ap_HandoverRequiredIEs->source_ToTarget_TransparentContainer_Secondary, s1apSourceToTargetTransparentContainer_p, sizeof(S1ap_Source_ToTarget_TransparentContainer_t)); } break; /* Conditional field */ @@ -2854,14 +2578,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_MSCLASSMARK2_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MSClassmark2, (void**)&s1apMSClassmark2_p); if (tempDecoded < 0 || s1apMSClassmark2_p == NULL) { - d_error("Decoding of IE msClassmark2 failed\n"); + d_error("Decoding of IE msClassmark2 failed\n"); if (s1apMSClassmark2_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MSClassmark2, s1apMSClassmark2_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MSClassmark2, s1apMSClassmark2_p); memcpy(&s1ap_HandoverRequiredIEs->msClassmark2, s1apMSClassmark2_p, sizeof(S1ap_MSClassmark2_t)); } break; /* Conditional field */ @@ -2871,14 +2593,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_MSCLASSMARK3_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MSClassmark3, (void**)&s1apMSClassmark3_p); if (tempDecoded < 0 || s1apMSClassmark3_p == NULL) { - d_error("Decoding of IE msClassmark3 failed\n"); + d_error("Decoding of IE msClassmark3 failed\n"); if (s1apMSClassmark3_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MSClassmark3, s1apMSClassmark3_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MSClassmark3, s1apMSClassmark3_p); memcpy(&s1ap_HandoverRequiredIEs->msClassmark3, s1apMSClassmark3_p, sizeof(S1ap_MSClassmark3_t)); } break; /* Optional field */ @@ -2888,14 +2608,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_CSG_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_Id, (void**)&s1apCSGId_p); if (tempDecoded < 0 || s1apCSGId_p == NULL) { - d_error("Decoding of IE csG_Id failed\n"); + d_error("Decoding of IE csG_Id failed\n"); if (s1apCSGId_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_Id, s1apCSGId_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_Id, s1apCSGId_p); memcpy(&s1ap_HandoverRequiredIEs->csG_Id, s1apCSGId_p, sizeof(S1ap_CSG_Id_t)); } break; /* Optional field */ @@ -2905,14 +2623,12 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_CELLACCESSMODE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CellAccessMode, (void**)&s1apCellAccessMode_p); if (tempDecoded < 0 || s1apCellAccessMode_p == NULL) { - d_error("Decoding of IE cellAccessMode failed\n"); + d_error("Decoding of IE cellAccessMode failed\n"); if (s1apCellAccessMode_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); memcpy(&s1ap_HandoverRequiredIEs->cellAccessMode, s1apCellAccessMode_p, sizeof(S1ap_CellAccessMode_t)); } break; /* Optional field */ @@ -2922,18 +2638,16 @@ int s1ap_decode_s1ap_handoverrequiredies( s1ap_HandoverRequiredIEs->presenceMask |= S1AP_HANDOVERREQUIREDIES_PS_SERVICENOTAVAILABLE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PS_ServiceNotAvailable, (void**)&s1apPSServiceNotAvailable_p); if (tempDecoded < 0 || s1apPSServiceNotAvailable_p == NULL) { - d_error("Decoding of IE pS_ServiceNotAvailable failed\n"); + d_error("Decoding of IE pS_ServiceNotAvailable failed\n"); if (s1apPSServiceNotAvailable_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PS_ServiceNotAvailable, s1apPSServiceNotAvailable_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PS_ServiceNotAvailable, s1apPSServiceNotAvailable_p); memcpy(&s1ap_HandoverRequiredIEs->pS_ServiceNotAvailable, s1apPSServiceNotAvailable_p, sizeof(S1ap_PS_ServiceNotAvailable_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequiredies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequiredies\n", (int)ie_p->id); return -1; } } @@ -2951,7 +2665,7 @@ int s1ap_decode_s1ap_mmeconfigurationupdateacknowledgeies( assert(any_p != NULL); assert(s1ap_MMEConfigurationUpdateAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEConfigurationUpdateAcknowledge, (void**)&s1ap_MMEConfigurationUpdateAcknowledge_p); @@ -2966,18 +2680,16 @@ int s1ap_decode_s1ap_mmeconfigurationupdateacknowledgeies( s1ap_MMEConfigurationUpdateAcknowledgeIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_MMEConfigurationUpdateAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdateacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdateacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -2995,7 +2707,7 @@ int s1ap_decode_s1ap_killresponseies( assert(any_p != NULL); assert(s1ap_KillResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_KillResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_KillResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_KillResponse, (void**)&s1ap_KillResponse_p); @@ -3008,14 +2720,12 @@ int s1ap_decode_s1ap_killresponseies( S1ap_MessageIdentifier_t *s1apMessageIdentifier_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MessageIdentifier, (void**)&s1apMessageIdentifier_p); if (tempDecoded < 0 || s1apMessageIdentifier_p == NULL) { - d_error("Decoding of IE messageIdentifier failed\n"); + d_error("Decoding of IE messageIdentifier failed\n"); if (s1apMessageIdentifier_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MessageIdentifier, s1apMessageIdentifier_p); memcpy(&s1ap_KillResponseIEs->messageIdentifier, s1apMessageIdentifier_p, sizeof(S1ap_MessageIdentifier_t)); } break; case S1ap_ProtocolIE_ID_id_SerialNumber: @@ -3023,14 +2733,12 @@ int s1ap_decode_s1ap_killresponseies( S1ap_SerialNumber_t *s1apSerialNumber_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SerialNumber, (void**)&s1apSerialNumber_p); if (tempDecoded < 0 || s1apSerialNumber_p == NULL) { - d_error("Decoding of IE serialNumber failed\n"); + d_error("Decoding of IE serialNumber failed\n"); if (s1apSerialNumber_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SerialNumber, s1apSerialNumber_p); memcpy(&s1ap_KillResponseIEs->serialNumber, s1apSerialNumber_p, sizeof(S1ap_SerialNumber_t)); } break; /* Optional field */ @@ -3040,14 +2748,12 @@ int s1ap_decode_s1ap_killresponseies( s1ap_KillResponseIEs->presenceMask |= S1AP_KILLRESPONSEIES_BROADCASTCANCELLEDAREALIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_BroadcastCancelledAreaList, (void**)&s1apBroadcastCancelledAreaList_p); if (tempDecoded < 0 || s1apBroadcastCancelledAreaList_p == NULL) { - d_error("Decoding of IE broadcastCancelledAreaList failed\n"); + d_error("Decoding of IE broadcastCancelledAreaList failed\n"); if (s1apBroadcastCancelledAreaList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_BroadcastCancelledAreaList, s1apBroadcastCancelledAreaList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_BroadcastCancelledAreaList, s1apBroadcastCancelledAreaList_p); memcpy(&s1ap_KillResponseIEs->broadcastCancelledAreaList, s1apBroadcastCancelledAreaList_p, sizeof(S1ap_BroadcastCancelledAreaList_t)); } break; /* Optional field */ @@ -3057,18 +2763,16 @@ int s1ap_decode_s1ap_killresponseies( s1ap_KillResponseIEs->presenceMask |= S1AP_KILLRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_KillResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_killresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_killresponseies\n", (int)ie_p->id); return -1; } } @@ -3086,7 +2790,7 @@ int s1ap_decode_s1ap_mmestatustransferies( assert(any_p != NULL); assert(s1ap_MMEStatusTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEStatusTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEStatusTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEStatusTransfer, (void**)&s1ap_MMEStatusTransfer_p); @@ -3099,14 +2803,12 @@ int s1ap_decode_s1ap_mmestatustransferies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_MMEStatusTransferIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -3114,14 +2816,12 @@ int s1ap_decode_s1ap_mmestatustransferies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_MMEStatusTransferIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_StatusTransfer_TransparentContainer: @@ -3129,18 +2829,16 @@ int s1ap_decode_s1ap_mmestatustransferies( S1ap_ENB_StatusTransfer_TransparentContainer_t *s1apENBStatusTransferTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, (void**)&s1apENBStatusTransferTransparentContainer_p); if (tempDecoded < 0 || s1apENBStatusTransferTransparentContainer_p == NULL) { - d_error("Decoding of IE eNB_StatusTransfer_TransparentContainer failed\n"); + d_error("Decoding of IE eNB_StatusTransfer_TransparentContainer failed\n"); if (s1apENBStatusTransferTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p); memcpy(&s1ap_MMEStatusTransferIEs->eNB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p, sizeof(S1ap_ENB_StatusTransfer_TransparentContainer_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmestatustransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmestatustransferies\n", (int)ie_p->id); return -1; } } @@ -3158,7 +2856,7 @@ int s1ap_decode_s1ap_mmeconfigurationupdateies( assert(any_p != NULL); assert(s1ap_MMEConfigurationUpdateIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEConfigurationUpdate, (void**)&s1ap_MMEConfigurationUpdate_p); @@ -3173,14 +2871,12 @@ int s1ap_decode_s1ap_mmeconfigurationupdateies( s1ap_MMEConfigurationUpdateIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEIES_MMENAME_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MMEname, (void**)&s1apMMEname_p); if (tempDecoded < 0 || s1apMMEname_p == NULL) { - d_error("Decoding of IE mmEname failed\n"); + d_error("Decoding of IE mmEname failed\n"); if (s1apMMEname_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MMEname, s1apMMEname_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MMEname, s1apMMEname_p); memcpy(&s1ap_MMEConfigurationUpdateIEs->mmEname, s1apMMEname_p, sizeof(S1ap_MMEname_t)); } break; /* Optional field */ @@ -3190,14 +2886,12 @@ int s1ap_decode_s1ap_mmeconfigurationupdateies( s1ap_MMEConfigurationUpdateIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEIES_SERVEDGUMMEIS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ServedGUMMEIs, (void**)&s1apServedGUMMEIs_p); if (tempDecoded < 0 || s1apServedGUMMEIs_p == NULL) { - d_error("Decoding of IE servedGUMMEIs failed\n"); + d_error("Decoding of IE servedGUMMEIs failed\n"); if (s1apServedGUMMEIs_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ServedGUMMEIs, s1apServedGUMMEIs_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ServedGUMMEIs, s1apServedGUMMEIs_p); memcpy(&s1ap_MMEConfigurationUpdateIEs->servedGUMMEIs, s1apServedGUMMEIs_p, sizeof(S1ap_ServedGUMMEIs_t)); } break; /* Optional field */ @@ -3207,18 +2901,16 @@ int s1ap_decode_s1ap_mmeconfigurationupdateies( s1ap_MMEConfigurationUpdateIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEIES_RELATIVEMMECAPACITY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RelativeMMECapacity, (void**)&s1apRelativeMMECapacity_p); if (tempDecoded < 0 || s1apRelativeMMECapacity_p == NULL) { - d_error("Decoding of IE relativeMMECapacity failed\n"); + d_error("Decoding of IE relativeMMECapacity failed\n"); if (s1apRelativeMMECapacity_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RelativeMMECapacity, s1apRelativeMMECapacity_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RelativeMMECapacity, s1apRelativeMMECapacity_p); memcpy(&s1ap_MMEConfigurationUpdateIEs->relativeMMECapacity, s1apRelativeMMECapacity_p, sizeof(S1ap_RelativeMMECapacity_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdateies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdateies\n", (int)ie_p->id); return -1; } } @@ -3236,7 +2928,7 @@ int s1ap_decode_s1ap_e_rabmodifyrequesties( assert(any_p != NULL); assert(s1ap_E_RABModifyRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABModifyRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABModifyRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABModifyRequest, (void**)&s1ap_E_RABModifyRequest_p); @@ -3249,14 +2941,12 @@ int s1ap_decode_s1ap_e_rabmodifyrequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABModifyRequestIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -3264,14 +2954,12 @@ int s1ap_decode_s1ap_e_rabmodifyrequesties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABModifyRequestIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -3281,14 +2969,12 @@ int s1ap_decode_s1ap_e_rabmodifyrequesties( s1ap_E_RABModifyRequestIEs->presenceMask |= S1AP_E_RABMODIFYREQUESTIES_UEAGGREGATEMAXIMUMBITRATE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_E_RABModifyRequestIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeModifiedListBearerModReq: @@ -3296,21 +2982,19 @@ int s1ap_decode_s1ap_e_rabmodifyrequesties( S1ap_E_RABToBeModifiedListBearerModReq_t *s1apERABToBeModifiedListBearerModReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeModifiedListBearerModReq, (void**)&s1apERABToBeModifiedListBearerModReq_p); if (tempDecoded < 0 || s1apERABToBeModifiedListBearerModReq_p == NULL) { - d_error("Decoding of IE e_RABToBeModifiedListBearerModReq failed\n"); + d_error("Decoding of IE e_RABToBeModifiedListBearerModReq failed\n"); if (s1apERABToBeModifiedListBearerModReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeModifiedListBearerModReq, s1apERABToBeModifiedListBearerModReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeModifiedListBearerModReq, s1apERABToBeModifiedListBearerModReq_p); if (s1ap_decode_s1ap_e_rabtobemodifiedlistbearermodreq(&s1ap_E_RABModifyRequestIEs->e_RABToBeModifiedListBearerModReq, s1apERABToBeModifiedListBearerModReq_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeModifiedListBearerModReq failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeModifiedListBearerModReq failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeModifiedListBearerModReq, s1apERABToBeModifiedListBearerModReq_p); } } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabmodifyrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabmodifyrequesties\n", (int)ie_p->id); return -1; } } @@ -3328,7 +3012,7 @@ int s1ap_decode_s1ap_enbconfigurationupdatefailureies( assert(any_p != NULL); assert(s1ap_ENBConfigurationUpdateFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBConfigurationUpdateFailure, (void**)&s1ap_ENBConfigurationUpdateFailure_p); @@ -3341,14 +3025,12 @@ int s1ap_decode_s1ap_enbconfigurationupdatefailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_ENBConfigurationUpdateFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -3358,14 +3040,12 @@ int s1ap_decode_s1ap_enbconfigurationupdatefailureies( s1ap_ENBConfigurationUpdateFailureIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEFAILUREIES_TIMETOWAIT_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TimeToWait, (void**)&s1apTimeToWait_p); if (tempDecoded < 0 || s1apTimeToWait_p == NULL) { - d_error("Decoding of IE timeToWait failed\n"); + d_error("Decoding of IE timeToWait failed\n"); if (s1apTimeToWait_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); memcpy(&s1ap_ENBConfigurationUpdateFailureIEs->timeToWait, s1apTimeToWait_p, sizeof(S1ap_TimeToWait_t)); } break; /* Optional field */ @@ -3375,18 +3055,16 @@ int s1ap_decode_s1ap_enbconfigurationupdatefailureies( s1ap_ENBConfigurationUpdateFailureIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_ENBConfigurationUpdateFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdatefailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdatefailureies\n", (int)ie_p->id); return -1; } } @@ -3404,7 +3082,7 @@ int s1ap_decode_s1ap_reseties( assert(any_p != NULL); assert(s1ap_ResetIEs != NULL); - d_trace(3, "Decoding message S1ap_ResetIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ResetIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_Reset, (void**)&s1ap_Reset_p); @@ -3417,14 +3095,12 @@ int s1ap_decode_s1ap_reseties( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_ResetIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; case S1ap_ProtocolIE_ID_id_ResetType: @@ -3432,18 +3108,16 @@ int s1ap_decode_s1ap_reseties( S1ap_ResetType_t *s1apResetType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ResetType, (void**)&s1apResetType_p); if (tempDecoded < 0 || s1apResetType_p == NULL) { - d_error("Decoding of IE resetType failed\n"); + d_error("Decoding of IE resetType failed\n"); if (s1apResetType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ResetType, s1apResetType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ResetType, s1apResetType_p); memcpy(&s1ap_ResetIEs->resetType, s1apResetType_p, sizeof(S1ap_ResetType_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_reseties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_reseties\n", (int)ie_p->id); return -1; } } @@ -3461,7 +3135,7 @@ int s1ap_decode_s1ap_s1setupresponseies( assert(any_p != NULL); assert(s1ap_S1SetupResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_S1SetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_S1SetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_S1SetupResponse, (void**)&s1ap_S1SetupResponse_p); @@ -3476,14 +3150,12 @@ int s1ap_decode_s1ap_s1setupresponseies( s1ap_S1SetupResponseIEs->presenceMask |= S1AP_S1SETUPRESPONSEIES_MMENAME_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MMEname, (void**)&s1apMMEname_p); if (tempDecoded < 0 || s1apMMEname_p == NULL) { - d_error("Decoding of IE mmEname failed\n"); + d_error("Decoding of IE mmEname failed\n"); if (s1apMMEname_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MMEname, s1apMMEname_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MMEname, s1apMMEname_p); memcpy(&s1ap_S1SetupResponseIEs->mmEname, s1apMMEname_p, sizeof(S1ap_MMEname_t)); } break; case S1ap_ProtocolIE_ID_id_ServedGUMMEIs: @@ -3491,14 +3163,12 @@ int s1ap_decode_s1ap_s1setupresponseies( S1ap_ServedGUMMEIs_t *s1apServedGUMMEIs_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ServedGUMMEIs, (void**)&s1apServedGUMMEIs_p); if (tempDecoded < 0 || s1apServedGUMMEIs_p == NULL) { - d_error("Decoding of IE servedGUMMEIs failed\n"); + d_error("Decoding of IE servedGUMMEIs failed\n"); if (s1apServedGUMMEIs_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ServedGUMMEIs, s1apServedGUMMEIs_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ServedGUMMEIs, s1apServedGUMMEIs_p); memcpy(&s1ap_S1SetupResponseIEs->servedGUMMEIs, s1apServedGUMMEIs_p, sizeof(S1ap_ServedGUMMEIs_t)); } break; case S1ap_ProtocolIE_ID_id_RelativeMMECapacity: @@ -3506,14 +3176,12 @@ int s1ap_decode_s1ap_s1setupresponseies( S1ap_RelativeMMECapacity_t *s1apRelativeMMECapacity_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_RelativeMMECapacity, (void**)&s1apRelativeMMECapacity_p); if (tempDecoded < 0 || s1apRelativeMMECapacity_p == NULL) { - d_error("Decoding of IE relativeMMECapacity failed\n"); + d_error("Decoding of IE relativeMMECapacity failed\n"); if (s1apRelativeMMECapacity_p) ASN_STRUCT_FREE(asn_DEF_S1ap_RelativeMMECapacity, s1apRelativeMMECapacity_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_RelativeMMECapacity, s1apRelativeMMECapacity_p); memcpy(&s1ap_S1SetupResponseIEs->relativeMMECapacity, s1apRelativeMMECapacity_p, sizeof(S1ap_RelativeMMECapacity_t)); } break; /* Optional field */ @@ -3523,14 +3191,12 @@ int s1ap_decode_s1ap_s1setupresponseies( s1ap_S1SetupResponseIEs->presenceMask |= S1AP_S1SETUPRESPONSEIES_MMERELAYSUPPORTINDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MMERelaySupportIndicator, (void**)&s1apMMERelaySupportIndicator_p); if (tempDecoded < 0 || s1apMMERelaySupportIndicator_p == NULL) { - d_error("Decoding of IE mmeRelaySupportIndicator failed\n"); + d_error("Decoding of IE mmeRelaySupportIndicator failed\n"); if (s1apMMERelaySupportIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MMERelaySupportIndicator, s1apMMERelaySupportIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MMERelaySupportIndicator, s1apMMERelaySupportIndicator_p); memcpy(&s1ap_S1SetupResponseIEs->mmeRelaySupportIndicator, s1apMMERelaySupportIndicator_p, sizeof(S1ap_MMERelaySupportIndicator_t)); } break; /* Optional field */ @@ -3540,18 +3206,16 @@ int s1ap_decode_s1ap_s1setupresponseies( s1ap_S1SetupResponseIEs->presenceMask |= S1AP_S1SETUPRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_S1SetupResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_s1setupresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_s1setupresponseies\n", (int)ie_p->id); return -1; } } @@ -3569,7 +3233,7 @@ int s1ap_decode_s1ap_pagingies( assert(any_p != NULL); assert(s1ap_PagingIEs != NULL); - d_trace(3, "Decoding message S1ap_PagingIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_PagingIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_Paging, (void**)&s1ap_Paging_p); @@ -3582,14 +3246,12 @@ int s1ap_decode_s1ap_pagingies( S1ap_UEIdentityIndexValue_t *s1apUEIdentityIndexValue_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEIdentityIndexValue, (void**)&s1apUEIdentityIndexValue_p); if (tempDecoded < 0 || s1apUEIdentityIndexValue_p == NULL) { - d_error("Decoding of IE ueIdentityIndexValue failed\n"); + d_error("Decoding of IE ueIdentityIndexValue failed\n"); if (s1apUEIdentityIndexValue_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEIdentityIndexValue, s1apUEIdentityIndexValue_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEIdentityIndexValue, s1apUEIdentityIndexValue_p); memcpy(&s1ap_PagingIEs->ueIdentityIndexValue, s1apUEIdentityIndexValue_p, sizeof(S1ap_UEIdentityIndexValue_t)); } break; case S1ap_ProtocolIE_ID_id_UEPagingID: @@ -3597,14 +3259,12 @@ int s1ap_decode_s1ap_pagingies( S1ap_UEPagingID_t *s1apUEPagingID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEPagingID, (void**)&s1apUEPagingID_p); if (tempDecoded < 0 || s1apUEPagingID_p == NULL) { - d_error("Decoding of IE uePagingID failed\n"); + d_error("Decoding of IE uePagingID failed\n"); if (s1apUEPagingID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEPagingID, s1apUEPagingID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEPagingID, s1apUEPagingID_p); memcpy(&s1ap_PagingIEs->uePagingID, s1apUEPagingID_p, sizeof(S1ap_UEPagingID_t)); } break; /* Optional field */ @@ -3614,14 +3274,12 @@ int s1ap_decode_s1ap_pagingies( s1ap_PagingIEs->presenceMask |= S1AP_PAGINGIES_PAGINGDRX_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PagingDRX, (void**)&s1apPagingDRX_p); if (tempDecoded < 0 || s1apPagingDRX_p == NULL) { - d_error("Decoding of IE pagingDRX failed\n"); + d_error("Decoding of IE pagingDRX failed\n"); if (s1apPagingDRX_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); memcpy(&s1ap_PagingIEs->pagingDRX, s1apPagingDRX_p, sizeof(S1ap_PagingDRX_t)); } break; case S1ap_ProtocolIE_ID_id_CNDomain: @@ -3629,14 +3287,12 @@ int s1ap_decode_s1ap_pagingies( S1ap_CNDomain_t *s1apCNDomain_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CNDomain, (void**)&s1apCNDomain_p); if (tempDecoded < 0 || s1apCNDomain_p == NULL) { - d_error("Decoding of IE cnDomain failed\n"); + d_error("Decoding of IE cnDomain failed\n"); if (s1apCNDomain_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CNDomain, s1apCNDomain_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CNDomain, s1apCNDomain_p); memcpy(&s1ap_PagingIEs->cnDomain, s1apCNDomain_p, sizeof(S1ap_CNDomain_t)); } break; case S1ap_ProtocolIE_ID_id_TAIList: @@ -3644,16 +3300,14 @@ int s1ap_decode_s1ap_pagingies( S1ap_TAIList_t *s1apTAIList_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAIList, (void**)&s1apTAIList_p); if (tempDecoded < 0 || s1apTAIList_p == NULL) { - d_error("Decoding of IE taiList failed\n"); + d_error("Decoding of IE taiList failed\n"); if (s1apTAIList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAIList, s1apTAIList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAIList, s1apTAIList_p); if (s1ap_decode_s1ap_tailist(&s1ap_PagingIEs->taiList, s1apTAIList_p) < 0) { - d_error("Decoding of encapsulated IE s1apTAIList failed\n"); + d_error("Decoding of encapsulated IE s1apTAIList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_TAIList, s1apTAIList_p); } } break; @@ -3664,14 +3318,12 @@ int s1ap_decode_s1ap_pagingies( s1ap_PagingIEs->presenceMask |= S1AP_PAGINGIES_CSG_IDLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_IdList, (void**)&s1apCSGIdList_p); if (tempDecoded < 0 || s1apCSGIdList_p == NULL) { - d_error("Decoding of IE csG_IdList failed\n"); + d_error("Decoding of IE csG_IdList failed\n"); if (s1apCSGIdList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); memcpy(&s1ap_PagingIEs->csG_IdList, s1apCSGIdList_p, sizeof(S1ap_CSG_IdList_t)); } break; /* Optional field */ @@ -3681,18 +3333,16 @@ int s1ap_decode_s1ap_pagingies( s1ap_PagingIEs->presenceMask |= S1AP_PAGINGIES_PAGINGPRIORITY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PagingPriority, (void**)&s1apPagingPriority_p); if (tempDecoded < 0 || s1apPagingPriority_p == NULL) { - d_error("Decoding of IE pagingPriority failed\n"); + d_error("Decoding of IE pagingPriority failed\n"); if (s1apPagingPriority_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PagingPriority, s1apPagingPriority_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PagingPriority, s1apPagingPriority_p); memcpy(&s1ap_PagingIEs->pagingPriority, s1apPagingPriority_p, sizeof(S1ap_PagingPriority_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_pagingies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_pagingies\n", (int)ie_p->id); return -1; } } @@ -3710,7 +3360,7 @@ int s1ap_decode_s1ap_enbconfigurationupdateacknowledgeies( assert(any_p != NULL); assert(s1ap_ENBConfigurationUpdateAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBConfigurationUpdateAcknowledge, (void**)&s1ap_ENBConfigurationUpdateAcknowledge_p); @@ -3725,18 +3375,16 @@ int s1ap_decode_s1ap_enbconfigurationupdateacknowledgeies( s1ap_ENBConfigurationUpdateAcknowledgeIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_ENBConfigurationUpdateAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdateacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdateacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -3754,7 +3402,7 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( assert(any_p != NULL); assert(s1ap_E_RABReleaseCommandIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABReleaseCommandIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABReleaseCommandIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABReleaseCommand, (void**)&s1ap_E_RABReleaseCommand_p); @@ -3767,14 +3415,12 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABReleaseCommandIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -3782,14 +3428,12 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABReleaseCommandIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -3799,14 +3443,12 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( s1ap_E_RABReleaseCommandIEs->presenceMask |= S1AP_E_RABRELEASECOMMANDIES_UEAGGREGATEMAXIMUMBITRATE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_E_RABReleaseCommandIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeReleasedList: @@ -3814,16 +3456,14 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( S1ap_E_RABList_t *s1apERABList_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABToBeReleasedList failed\n"); + d_error("Decoding of IE e_RABToBeReleasedList failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_E_RABReleaseCommandIEs->e_RABToBeReleasedList, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -3834,18 +3474,16 @@ int s1ap_decode_s1ap_e_rabreleasecommandies( s1ap_E_RABReleaseCommandIEs->presenceMask |= S1AP_E_RABRELEASECOMMANDIES_NAS_PDU_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NAS_PDU, (void**)&s1apNASPDU_p); if (tempDecoded < 0 || s1apNASPDU_p == NULL) { - d_error("Decoding of IE nas_pdu failed\n"); + d_error("Decoding of IE nas_pdu failed\n"); if (s1apNASPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); memcpy(&s1ap_E_RABReleaseCommandIEs->nas_pdu, s1apNASPDU_p, sizeof(S1ap_NAS_PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleasecommandies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleasecommandies\n", (int)ie_p->id); return -1; } } @@ -3863,7 +3501,7 @@ int s1ap_decode_s1ap_pathswitchrequestfailureies( assert(any_p != NULL); assert(s1ap_PathSwitchRequestFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_PathSwitchRequestFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_PathSwitchRequestFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_PathSwitchRequestFailure, (void**)&s1ap_PathSwitchRequestFailure_p); @@ -3876,14 +3514,12 @@ int s1ap_decode_s1ap_pathswitchrequestfailureies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_PathSwitchRequestFailureIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -3891,14 +3527,12 @@ int s1ap_decode_s1ap_pathswitchrequestfailureies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_PathSwitchRequestFailureIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -3906,14 +3540,12 @@ int s1ap_decode_s1ap_pathswitchrequestfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_PathSwitchRequestFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -3923,18 +3555,16 @@ int s1ap_decode_s1ap_pathswitchrequestfailureies( s1ap_PathSwitchRequestFailureIEs->presenceMask |= S1AP_PATHSWITCHREQUESTFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_PathSwitchRequestFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequestfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequestfailureies\n", (int)ie_p->id); return -1; } } @@ -3952,7 +3582,7 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( assert(any_p != NULL); assert(s1ap_E_RABModifyResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABModifyResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABModifyResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABModifyResponse, (void**)&s1ap_E_RABModifyResponse_p); @@ -3965,14 +3595,12 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABModifyResponseIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -3980,14 +3608,12 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABModifyResponseIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -3997,16 +3623,14 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( s1ap_E_RABModifyResponseIEs->presenceMask |= S1AP_E_RABMODIFYRESPONSEIES_E_RABMODIFYLISTBEARERMODRES_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABModifyListBearerModRes, (void**)&s1apERABModifyListBearerModRes_p); if (tempDecoded < 0 || s1apERABModifyListBearerModRes_p == NULL) { - d_error("Decoding of IE e_RABModifyListBearerModRes failed\n"); + d_error("Decoding of IE e_RABModifyListBearerModRes failed\n"); if (s1apERABModifyListBearerModRes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABModifyListBearerModRes, s1apERABModifyListBearerModRes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABModifyListBearerModRes, s1apERABModifyListBearerModRes_p); if (s1ap_decode_s1ap_e_rabmodifylistbearermodres(&s1ap_E_RABModifyResponseIEs->e_RABModifyListBearerModRes, s1apERABModifyListBearerModRes_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABModifyListBearerModRes failed\n"); + d_error("Decoding of encapsulated IE s1apERABModifyListBearerModRes failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABModifyListBearerModRes, s1apERABModifyListBearerModRes_p); } } break; @@ -4017,16 +3641,14 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( s1ap_E_RABModifyResponseIEs->presenceMask |= S1AP_E_RABMODIFYRESPONSEIES_E_RABFAILEDTOMODIFYLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABFailedToModifyList failed\n"); + d_error("Decoding of IE e_RABFailedToModifyList failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_E_RABModifyResponseIEs->e_RABFailedToModifyList, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -4037,18 +3659,16 @@ int s1ap_decode_s1ap_e_rabmodifyresponseies( s1ap_E_RABModifyResponseIEs->presenceMask |= S1AP_E_RABMODIFYRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_E_RABModifyResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabmodifyresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabmodifyresponseies\n", (int)ie_p->id); return -1; } } @@ -4066,7 +3686,7 @@ int s1ap_decode_s1ap_handovernotifyies( assert(any_p != NULL); assert(s1ap_HandoverNotifyIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverNotifyIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverNotifyIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverNotify, (void**)&s1ap_HandoverNotify_p); @@ -4079,14 +3699,12 @@ int s1ap_decode_s1ap_handovernotifyies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverNotifyIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4094,14 +3712,12 @@ int s1ap_decode_s1ap_handovernotifyies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverNotifyIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -4109,14 +3725,12 @@ int s1ap_decode_s1ap_handovernotifyies( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_HandoverNotifyIEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_TAI: @@ -4124,18 +3738,16 @@ int s1ap_decode_s1ap_handovernotifyies( S1ap_TAI_t *s1apTAI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAI, (void**)&s1apTAI_p); if (tempDecoded < 0 || s1apTAI_p == NULL) { - d_error("Decoding of IE tai failed\n"); + d_error("Decoding of IE tai failed\n"); if (s1apTAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAI, s1apTAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAI, s1apTAI_p); memcpy(&s1ap_HandoverNotifyIEs->tai, s1apTAI_p, sizeof(S1ap_TAI_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handovernotifyies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handovernotifyies\n", (int)ie_p->id); return -1; } } @@ -4153,7 +3765,7 @@ int s1ap_decode_s1ap_handovercancelacknowledgeies( assert(any_p != NULL); assert(s1ap_HandoverCancelAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverCancelAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverCancelAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverCancelAcknowledge, (void**)&s1ap_HandoverCancelAcknowledge_p); @@ -4166,14 +3778,12 @@ int s1ap_decode_s1ap_handovercancelacknowledgeies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverCancelAcknowledgeIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4181,14 +3791,12 @@ int s1ap_decode_s1ap_handovercancelacknowledgeies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverCancelAcknowledgeIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -4198,18 +3806,16 @@ int s1ap_decode_s1ap_handovercancelacknowledgeies( s1ap_HandoverCancelAcknowledgeIEs->presenceMask |= S1AP_HANDOVERCANCELACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_HandoverCancelAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handovercancelacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handovercancelacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -4227,7 +3833,7 @@ int s1ap_decode_s1ap_initialcontextsetupfailureies( assert(any_p != NULL); assert(s1ap_InitialContextSetupFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_InitialContextSetupFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_InitialContextSetupFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_InitialContextSetupFailure, (void**)&s1ap_InitialContextSetupFailure_p); @@ -4240,14 +3846,12 @@ int s1ap_decode_s1ap_initialcontextsetupfailureies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_InitialContextSetupFailureIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4255,14 +3859,12 @@ int s1ap_decode_s1ap_initialcontextsetupfailureies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_InitialContextSetupFailureIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -4270,14 +3872,12 @@ int s1ap_decode_s1ap_initialcontextsetupfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_InitialContextSetupFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -4287,18 +3887,16 @@ int s1ap_decode_s1ap_initialcontextsetupfailureies( s1ap_InitialContextSetupFailureIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_InitialContextSetupFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetupfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetupfailureies\n", (int)ie_p->id); return -1; } } @@ -4316,7 +3914,7 @@ int s1ap_decode_s1ap_handovercommandies( assert(any_p != NULL); assert(s1ap_HandoverCommandIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverCommandIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverCommandIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverCommand, (void**)&s1ap_HandoverCommand_p); @@ -4329,14 +3927,12 @@ int s1ap_decode_s1ap_handovercommandies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverCommandIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4344,14 +3940,12 @@ int s1ap_decode_s1ap_handovercommandies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverCommandIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_HandoverType: @@ -4359,14 +3953,12 @@ int s1ap_decode_s1ap_handovercommandies( S1ap_HandoverType_t *s1apHandoverType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverType, (void**)&s1apHandoverType_p); if (tempDecoded < 0 || s1apHandoverType_p == NULL) { - d_error("Decoding of IE handoverType failed\n"); + d_error("Decoding of IE handoverType failed\n"); if (s1apHandoverType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverType, s1apHandoverType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverType, s1apHandoverType_p); memcpy(&s1ap_HandoverCommandIEs->handoverType, s1apHandoverType_p, sizeof(S1ap_HandoverType_t)); } break; /* Optional field */ @@ -4376,16 +3968,14 @@ int s1ap_decode_s1ap_handovercommandies( s1ap_HandoverCommandIEs->presenceMask |= S1AP_HANDOVERCOMMANDIES_E_RABDATAFORWARDINGLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABDataForwardingList, (void**)&s1apERABDataForwardingList_p); if (tempDecoded < 0 || s1apERABDataForwardingList_p == NULL) { - d_error("Decoding of IE e_RABDataForwardingList failed\n"); + d_error("Decoding of IE e_RABDataForwardingList failed\n"); if (s1apERABDataForwardingList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); if (s1ap_decode_s1ap_e_rabdataforwardinglist(&s1ap_HandoverCommandIEs->e_RABDataForwardingList, s1apERABDataForwardingList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABDataForwardingList failed\n"); + d_error("Decoding of encapsulated IE s1apERABDataForwardingList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); } } break; @@ -4396,16 +3986,14 @@ int s1ap_decode_s1ap_handovercommandies( s1ap_HandoverCommandIEs->presenceMask |= S1AP_HANDOVERCOMMANDIES_E_RABTORELEASELISTHOCMD_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABtoReleaseListHOCmd failed\n"); + d_error("Decoding of IE e_RABtoReleaseListHOCmd failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_HandoverCommandIEs->e_RABtoReleaseListHOCmd, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -4414,14 +4002,12 @@ int s1ap_decode_s1ap_handovercommandies( S1ap_Target_ToSource_TransparentContainer_t *s1apTargetToSourceTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, (void**)&s1apTargetToSourceTransparentContainer_p); if (tempDecoded < 0 || s1apTargetToSourceTransparentContainer_p == NULL) { - d_error("Decoding of IE target_ToSource_TransparentContainer failed\n"); + d_error("Decoding of IE target_ToSource_TransparentContainer failed\n"); if (s1apTargetToSourceTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); memcpy(&s1ap_HandoverCommandIEs->target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p, sizeof(S1ap_Target_ToSource_TransparentContainer_t)); } break; /* Optional field */ @@ -4431,14 +4017,12 @@ int s1ap_decode_s1ap_handovercommandies( s1ap_HandoverCommandIEs->presenceMask |= S1AP_HANDOVERCOMMANDIES_TARGET_TOSOURCE_TRANSPARENTCONTAINER_SECONDARY_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, (void**)&s1apTargetToSourceTransparentContainer_p); if (tempDecoded < 0 || s1apTargetToSourceTransparentContainer_p == NULL) { - d_error("Decoding of IE target_ToSource_TransparentContainer_Secondary failed\n"); + d_error("Decoding of IE target_ToSource_TransparentContainer_Secondary failed\n"); if (s1apTargetToSourceTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); memcpy(&s1ap_HandoverCommandIEs->target_ToSource_TransparentContainer_Secondary, s1apTargetToSourceTransparentContainer_p, sizeof(S1ap_Target_ToSource_TransparentContainer_t)); } break; /* Optional field */ @@ -4448,18 +4032,16 @@ int s1ap_decode_s1ap_handovercommandies( s1ap_HandoverCommandIEs->presenceMask |= S1AP_HANDOVERCOMMANDIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_HandoverCommandIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handovercommandies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handovercommandies\n", (int)ie_p->id); return -1; } } @@ -4477,7 +4059,7 @@ int s1ap_decode_s1ap_mmedirectinformationtransferies( assert(any_p != NULL); assert(s1ap_MMEDirectInformationTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEDirectInformationTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEDirectInformationTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEDirectInformationTransfer, (void**)&s1ap_MMEDirectInformationTransfer_p); @@ -4490,18 +4072,16 @@ int s1ap_decode_s1ap_mmedirectinformationtransferies( S1ap_Inter_SystemInformationTransferType_t *s1apInterSystemInformationTransferType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Inter_SystemInformationTransferType, (void**)&s1apInterSystemInformationTransferType_p); if (tempDecoded < 0 || s1apInterSystemInformationTransferType_p == NULL) { - d_error("Decoding of IE inter_SystemInformationTransferTypeMDT failed\n"); + d_error("Decoding of IE inter_SystemInformationTransferTypeMDT failed\n"); if (s1apInterSystemInformationTransferType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Inter_SystemInformationTransferType, s1apInterSystemInformationTransferType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Inter_SystemInformationTransferType, s1apInterSystemInformationTransferType_p); memcpy(&s1ap_MMEDirectInformationTransferIEs->inter_SystemInformationTransferTypeMDT, s1apInterSystemInformationTransferType_p, sizeof(S1ap_Inter_SystemInformationTransferType_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmedirectinformationtransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmedirectinformationtransferies\n", (int)ie_p->id); return -1; } } @@ -4519,7 +4099,7 @@ int s1ap_decode_s1ap_errorindicationies( assert(any_p != NULL); assert(s1ap_ErrorIndicationIEs != NULL); - d_trace(3, "Decoding message S1ap_ErrorIndicationIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ErrorIndicationIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ErrorIndication, (void**)&s1ap_ErrorIndication_p); @@ -4534,14 +4114,12 @@ int s1ap_decode_s1ap_errorindicationies( s1ap_ErrorIndicationIEs->presenceMask |= S1AP_ERRORINDICATIONIES_MME_UE_S1AP_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_ErrorIndicationIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -4551,14 +4129,12 @@ int s1ap_decode_s1ap_errorindicationies( s1ap_ErrorIndicationIEs->presenceMask |= S1AP_ERRORINDICATIONIES_ENB_UE_S1AP_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_ErrorIndicationIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -4568,14 +4144,12 @@ int s1ap_decode_s1ap_errorindicationies( s1ap_ErrorIndicationIEs->presenceMask |= S1AP_ERRORINDICATIONIES_CAUSE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_ErrorIndicationIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -4585,18 +4159,16 @@ int s1ap_decode_s1ap_errorindicationies( s1ap_ErrorIndicationIEs->presenceMask |= S1AP_ERRORINDICATIONIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_ErrorIndicationIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_errorindicationies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_errorindicationies\n", (int)ie_p->id); return -1; } } @@ -4614,7 +4186,7 @@ int s1ap_decode_s1ap_overloadstarties( assert(any_p != NULL); assert(s1ap_OverloadStartIEs != NULL); - d_trace(3, "Decoding message S1ap_OverloadStartIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_OverloadStartIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_OverloadStart, (void**)&s1ap_OverloadStart_p); @@ -4627,14 +4199,12 @@ int s1ap_decode_s1ap_overloadstarties( S1ap_OverloadResponse_t *s1apOverloadResponse_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_OverloadResponse, (void**)&s1apOverloadResponse_p); if (tempDecoded < 0 || s1apOverloadResponse_p == NULL) { - d_error("Decoding of IE overloadResponse failed\n"); + d_error("Decoding of IE overloadResponse failed\n"); if (s1apOverloadResponse_p) ASN_STRUCT_FREE(asn_DEF_S1ap_OverloadResponse, s1apOverloadResponse_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_OverloadResponse, s1apOverloadResponse_p); memcpy(&s1ap_OverloadStartIEs->overloadResponse, s1apOverloadResponse_p, sizeof(S1ap_OverloadResponse_t)); } break; /* Optional field */ @@ -4644,14 +4214,12 @@ int s1ap_decode_s1ap_overloadstarties( s1ap_OverloadStartIEs->presenceMask |= S1AP_OVERLOADSTARTIES_GUMMEILIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEIList, (void**)&s1apGUMMEIList_p); if (tempDecoded < 0 || s1apGUMMEIList_p == NULL) { - d_error("Decoding of IE gummeiList failed\n"); + d_error("Decoding of IE gummeiList failed\n"); if (s1apGUMMEIList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEIList, s1apGUMMEIList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEIList, s1apGUMMEIList_p); memcpy(&s1ap_OverloadStartIEs->gummeiList, s1apGUMMEIList_p, sizeof(S1ap_GUMMEIList_t)); } break; /* Optional field */ @@ -4661,18 +4229,16 @@ int s1ap_decode_s1ap_overloadstarties( s1ap_OverloadStartIEs->presenceMask |= S1AP_OVERLOADSTARTIES_TRAFFICLOADREDUCTIONINDICATION_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TrafficLoadReductionIndication, (void**)&s1apTrafficLoadReductionIndication_p); if (tempDecoded < 0 || s1apTrafficLoadReductionIndication_p == NULL) { - d_error("Decoding of IE trafficLoadReductionIndication failed\n"); + d_error("Decoding of IE trafficLoadReductionIndication failed\n"); if (s1apTrafficLoadReductionIndication_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TrafficLoadReductionIndication, s1apTrafficLoadReductionIndication_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TrafficLoadReductionIndication, s1apTrafficLoadReductionIndication_p); memcpy(&s1ap_OverloadStartIEs->trafficLoadReductionIndication, s1apTrafficLoadReductionIndication_p, sizeof(S1ap_TrafficLoadReductionIndication_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_overloadstarties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_overloadstarties\n", (int)ie_p->id); return -1; } } @@ -4690,7 +4256,7 @@ int s1ap_decode_s1ap_downlinknonueassociatedlppatransport_ies( assert(any_p != NULL); assert(s1ap_DownlinkNonUEAssociatedLPPaTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_DownlinkNonUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_DownlinkNonUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_DownlinkNonUEAssociatedLPPaTransport, (void**)&s1ap_DownlinkNonUEAssociatedLPPaTransport_p); @@ -4703,14 +4269,12 @@ int s1ap_decode_s1ap_downlinknonueassociatedlppatransport_ies( S1ap_Routing_ID_t *s1apRoutingID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Routing_ID, (void**)&s1apRoutingID_p); if (tempDecoded < 0 || s1apRoutingID_p == NULL) { - d_error("Decoding of IE routing_ID failed\n"); + d_error("Decoding of IE routing_ID failed\n"); if (s1apRoutingID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); memcpy(&s1ap_DownlinkNonUEAssociatedLPPaTransport_IEs->routing_ID, s1apRoutingID_p, sizeof(S1ap_Routing_ID_t)); } break; case S1ap_ProtocolIE_ID_id_LPPa_PDU: @@ -4718,18 +4282,16 @@ int s1ap_decode_s1ap_downlinknonueassociatedlppatransport_ies( S1ap_LPPa_PDU_t *s1apLPPaPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LPPa_PDU, (void**)&s1apLPPaPDU_p); if (tempDecoded < 0 || s1apLPPaPDU_p == NULL) { - d_error("Decoding of IE lpPa_PDU failed\n"); + d_error("Decoding of IE lpPa_PDU failed\n"); if (s1apLPPaPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); memcpy(&s1ap_DownlinkNonUEAssociatedLPPaTransport_IEs->lpPa_PDU, s1apLPPaPDU_p, sizeof(S1ap_LPPa_PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_downlinknonueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_downlinknonueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -4747,7 +4309,7 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( assert(any_p != NULL); assert(s1ap_HandoverRequestAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverRequestAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverRequestAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverRequestAcknowledge, (void**)&s1ap_HandoverRequestAcknowledge_p); @@ -4760,14 +4322,12 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverRequestAcknowledgeIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4775,14 +4335,12 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_HandoverRequestAcknowledgeIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABAdmittedList: @@ -4790,16 +4348,14 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( S1ap_E_RABAdmittedList_t *s1apERABAdmittedList_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABAdmittedList, (void**)&s1apERABAdmittedList_p); if (tempDecoded < 0 || s1apERABAdmittedList_p == NULL) { - d_error("Decoding of IE e_RABAdmittedList failed\n"); + d_error("Decoding of IE e_RABAdmittedList failed\n"); if (s1apERABAdmittedList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABAdmittedList, s1apERABAdmittedList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABAdmittedList, s1apERABAdmittedList_p); if (s1ap_decode_s1ap_e_rabadmittedlist(&s1ap_HandoverRequestAcknowledgeIEs->e_RABAdmittedList, s1apERABAdmittedList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABAdmittedList failed\n"); + d_error("Decoding of encapsulated IE s1apERABAdmittedList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABAdmittedList, s1apERABAdmittedList_p); } } break; @@ -4810,16 +4366,14 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( s1ap_HandoverRequestAcknowledgeIEs->presenceMask |= S1AP_HANDOVERREQUESTACKNOWLEDGEIES_E_RABFAILEDTOSETUPLISTHOREQACK_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABFailedtoSetupListHOReqAck, (void**)&s1apERABFailedtoSetupListHOReqAck_p); if (tempDecoded < 0 || s1apERABFailedtoSetupListHOReqAck_p == NULL) { - d_error("Decoding of IE e_RABFailedToSetupListHOReqAck failed\n"); + d_error("Decoding of IE e_RABFailedToSetupListHOReqAck failed\n"); if (s1apERABFailedtoSetupListHOReqAck_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABFailedtoSetupListHOReqAck, s1apERABFailedtoSetupListHOReqAck_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABFailedtoSetupListHOReqAck, s1apERABFailedtoSetupListHOReqAck_p); if (s1ap_decode_s1ap_e_rabfailedtosetuplisthoreqack(&s1ap_HandoverRequestAcknowledgeIEs->e_RABFailedToSetupListHOReqAck, s1apERABFailedtoSetupListHOReqAck_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABFailedtoSetupListHOReqAck failed\n"); + d_error("Decoding of encapsulated IE s1apERABFailedtoSetupListHOReqAck failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABFailedtoSetupListHOReqAck, s1apERABFailedtoSetupListHOReqAck_p); } } break; @@ -4828,14 +4382,12 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( S1ap_Target_ToSource_TransparentContainer_t *s1apTargetToSourceTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, (void**)&s1apTargetToSourceTransparentContainer_p); if (tempDecoded < 0 || s1apTargetToSourceTransparentContainer_p == NULL) { - d_error("Decoding of IE target_ToSource_TransparentContainer failed\n"); + d_error("Decoding of IE target_ToSource_TransparentContainer failed\n"); if (s1apTargetToSourceTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p); memcpy(&s1ap_HandoverRequestAcknowledgeIEs->target_ToSource_TransparentContainer, s1apTargetToSourceTransparentContainer_p, sizeof(S1ap_Target_ToSource_TransparentContainer_t)); } break; /* Optional field */ @@ -4845,14 +4397,12 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( s1ap_HandoverRequestAcknowledgeIEs->presenceMask |= S1AP_HANDOVERREQUESTACKNOWLEDGEIES_CSG_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_Id, (void**)&s1apCSGId_p); if (tempDecoded < 0 || s1apCSGId_p == NULL) { - d_error("Decoding of IE csG_Id failed\n"); + d_error("Decoding of IE csG_Id failed\n"); if (s1apCSGId_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_Id, s1apCSGId_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_Id, s1apCSGId_p); memcpy(&s1ap_HandoverRequestAcknowledgeIEs->csG_Id, s1apCSGId_p, sizeof(S1ap_CSG_Id_t)); } break; /* Optional field */ @@ -4862,18 +4412,16 @@ int s1ap_decode_s1ap_handoverrequestacknowledgeies( s1ap_HandoverRequestAcknowledgeIEs->presenceMask |= S1AP_HANDOVERREQUESTACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_HandoverRequestAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequestacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handoverrequestacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -4891,7 +4439,7 @@ int s1ap_decode_s1ap_downlinkueassociatedlppatransport_ies( assert(any_p != NULL); assert(s1ap_DownlinkUEAssociatedLPPaTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_DownlinkUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_DownlinkUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_DownlinkUEAssociatedLPPaTransport, (void**)&s1ap_DownlinkUEAssociatedLPPaTransport_p); @@ -4904,14 +4452,12 @@ int s1ap_decode_s1ap_downlinkueassociatedlppatransport_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_DownlinkUEAssociatedLPPaTransport_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -4919,14 +4465,12 @@ int s1ap_decode_s1ap_downlinkueassociatedlppatransport_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_DownlinkUEAssociatedLPPaTransport_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Routing_ID: @@ -4934,14 +4478,12 @@ int s1ap_decode_s1ap_downlinkueassociatedlppatransport_ies( S1ap_Routing_ID_t *s1apRoutingID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Routing_ID, (void**)&s1apRoutingID_p); if (tempDecoded < 0 || s1apRoutingID_p == NULL) { - d_error("Decoding of IE routing_ID failed\n"); + d_error("Decoding of IE routing_ID failed\n"); if (s1apRoutingID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); memcpy(&s1ap_DownlinkUEAssociatedLPPaTransport_IEs->routing_ID, s1apRoutingID_p, sizeof(S1ap_Routing_ID_t)); } break; case S1ap_ProtocolIE_ID_id_LPPa_PDU: @@ -4949,18 +4491,16 @@ int s1ap_decode_s1ap_downlinkueassociatedlppatransport_ies( S1ap_LPPa_PDU_t *s1apLPPaPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LPPa_PDU, (void**)&s1apLPPaPDU_p); if (tempDecoded < 0 || s1apLPPaPDU_p == NULL) { - d_error("Decoding of IE lpPa_PDU failed\n"); + d_error("Decoding of IE lpPa_PDU failed\n"); if (s1apLPPaPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); memcpy(&s1ap_DownlinkUEAssociatedLPPaTransport_IEs->lpPa_PDU, s1apLPPaPDU_p, sizeof(S1ap_LPPa_PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_downlinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_downlinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -4978,7 +4518,7 @@ int s1ap_decode_s1ap_uecontextmodificationfailureies( assert(any_p != NULL); assert(s1ap_UEContextModificationFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextModificationFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextModificationFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextModificationFailure, (void**)&s1ap_UEContextModificationFailure_p); @@ -4991,14 +4531,12 @@ int s1ap_decode_s1ap_uecontextmodificationfailureies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UEContextModificationFailureIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -5006,14 +4544,12 @@ int s1ap_decode_s1ap_uecontextmodificationfailureies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UEContextModificationFailureIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -5021,14 +4557,12 @@ int s1ap_decode_s1ap_uecontextmodificationfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_UEContextModificationFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -5038,18 +4572,16 @@ int s1ap_decode_s1ap_uecontextmodificationfailureies( s1ap_UEContextModificationFailureIEs->presenceMask |= S1AP_UECONTEXTMODIFICATIONFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_UEContextModificationFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextmodificationfailureies\n", (int)ie_p->id); return -1; } } @@ -5067,7 +4599,7 @@ int s1ap_decode_s1ap_mmeconfigurationtransferies( assert(any_p != NULL); assert(s1ap_MMEConfigurationTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEConfigurationTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEConfigurationTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEConfigurationTransfer, (void**)&s1ap_MMEConfigurationTransfer_p); @@ -5082,18 +4614,16 @@ int s1ap_decode_s1ap_mmeconfigurationtransferies( s1ap_MMEConfigurationTransferIEs->presenceMask |= S1AP_MMECONFIGURATIONTRANSFERIES_SONCONFIGURATIONTRANSFERMCT_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SONConfigurationTransfer, (void**)&s1apSONConfigurationTransfer_p); if (tempDecoded < 0 || s1apSONConfigurationTransfer_p == NULL) { - d_error("Decoding of IE sonConfigurationTransferMCT failed\n"); + d_error("Decoding of IE sonConfigurationTransferMCT failed\n"); if (s1apSONConfigurationTransfer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SONConfigurationTransfer, s1apSONConfigurationTransfer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SONConfigurationTransfer, s1apSONConfigurationTransfer_p); memcpy(&s1ap_MMEConfigurationTransferIEs->sonConfigurationTransferMCT, s1apSONConfigurationTransfer_p, sizeof(S1ap_SONConfigurationTransfer_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationtransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationtransferies\n", (int)ie_p->id); return -1; } } @@ -5111,7 +4641,7 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( assert(any_p != NULL); assert(s1ap_PathSwitchRequestAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_PathSwitchRequestAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_PathSwitchRequestAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_PathSwitchRequestAcknowledge, (void**)&s1ap_PathSwitchRequestAcknowledge_p); @@ -5124,14 +4654,12 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -5139,14 +4667,12 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -5156,14 +4682,12 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( s1ap_PathSwitchRequestAcknowledgeIEs->presenceMask |= S1AP_PATHSWITCHREQUESTACKNOWLEDGEIES_UEAGGREGATEMAXIMUMBITRATE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; /* Optional field */ @@ -5173,16 +4697,14 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( s1ap_PathSwitchRequestAcknowledgeIEs->presenceMask |= S1AP_PATHSWITCHREQUESTACKNOWLEDGEIES_E_RABTOBESWITCHEDULLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSwitchedULList, (void**)&s1apERABToBeSwitchedULList_p); if (tempDecoded < 0 || s1apERABToBeSwitchedULList_p == NULL) { - d_error("Decoding of IE e_RABToBeSwitchedULList failed\n"); + d_error("Decoding of IE e_RABToBeSwitchedULList failed\n"); if (s1apERABToBeSwitchedULList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedULList, s1apERABToBeSwitchedULList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSwitchedULList, s1apERABToBeSwitchedULList_p); if (s1ap_decode_s1ap_e_rabtobeswitchedullist(&s1ap_PathSwitchRequestAcknowledgeIEs->e_RABToBeSwitchedULList, s1apERABToBeSwitchedULList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeSwitchedULList failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeSwitchedULList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedULList, s1apERABToBeSwitchedULList_p); } } break; @@ -5193,16 +4715,14 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( s1ap_PathSwitchRequestAcknowledgeIEs->presenceMask |= S1AP_PATHSWITCHREQUESTACKNOWLEDGEIES_E_RABTOBERELEASEDLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABToBeReleasedList failed\n"); + d_error("Decoding of IE e_RABToBeReleasedList failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_PathSwitchRequestAcknowledgeIEs->e_RABToBeReleasedList, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -5211,14 +4731,12 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( S1ap_SecurityContext_t *s1apSecurityContext_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SecurityContext, (void**)&s1apSecurityContext_p); if (tempDecoded < 0 || s1apSecurityContext_p == NULL) { - d_error("Decoding of IE securityContext failed\n"); + d_error("Decoding of IE securityContext failed\n"); if (s1apSecurityContext_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SecurityContext, s1apSecurityContext_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SecurityContext, s1apSecurityContext_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->securityContext, s1apSecurityContext_p, sizeof(S1ap_SecurityContext_t)); } break; /* Optional field */ @@ -5228,14 +4746,12 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( s1ap_PathSwitchRequestAcknowledgeIEs->presenceMask |= S1AP_PATHSWITCHREQUESTACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; /* Optional field */ @@ -5245,18 +4761,16 @@ int s1ap_decode_s1ap_pathswitchrequestacknowledgeies( s1ap_PathSwitchRequestAcknowledgeIEs->presenceMask |= S1AP_PATHSWITCHREQUESTACKNOWLEDGEIES_MME_UE_S1AP_ID_2_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id_2 failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_PathSwitchRequestAcknowledgeIEs->mme_ue_s1ap_id_2, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequestacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequestacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -5274,7 +4788,7 @@ int s1ap_decode_s1ap_s1setupfailureies( assert(any_p != NULL); assert(s1ap_S1SetupFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_S1SetupFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_S1SetupFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_S1SetupFailure, (void**)&s1ap_S1SetupFailure_p); @@ -5287,14 +4801,12 @@ int s1ap_decode_s1ap_s1setupfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_S1SetupFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -5304,14 +4816,12 @@ int s1ap_decode_s1ap_s1setupfailureies( s1ap_S1SetupFailureIEs->presenceMask |= S1AP_S1SETUPFAILUREIES_TIMETOWAIT_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TimeToWait, (void**)&s1apTimeToWait_p); if (tempDecoded < 0 || s1apTimeToWait_p == NULL) { - d_error("Decoding of IE timeToWait failed\n"); + d_error("Decoding of IE timeToWait failed\n"); if (s1apTimeToWait_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); memcpy(&s1ap_S1SetupFailureIEs->timeToWait, s1apTimeToWait_p, sizeof(S1ap_TimeToWait_t)); } break; /* Optional field */ @@ -5321,18 +4831,16 @@ int s1ap_decode_s1ap_s1setupfailureies( s1ap_S1SetupFailureIEs->presenceMask |= S1AP_S1SETUPFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_S1SetupFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_s1setupfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_s1setupfailureies\n", (int)ie_p->id); return -1; } } @@ -5350,7 +4858,7 @@ int s1ap_decode_s1ap_mmeconfigurationupdatefailureies( assert(any_p != NULL); assert(s1ap_MMEConfigurationUpdateFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_MMEConfigurationUpdateFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_MMEConfigurationUpdateFailure, (void**)&s1ap_MMEConfigurationUpdateFailure_p); @@ -5363,14 +4871,12 @@ int s1ap_decode_s1ap_mmeconfigurationupdatefailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_MMEConfigurationUpdateFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -5380,14 +4886,12 @@ int s1ap_decode_s1ap_mmeconfigurationupdatefailureies( s1ap_MMEConfigurationUpdateFailureIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEFAILUREIES_TIMETOWAIT_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TimeToWait, (void**)&s1apTimeToWait_p); if (tempDecoded < 0 || s1apTimeToWait_p == NULL) { - d_error("Decoding of IE timeToWait failed\n"); + d_error("Decoding of IE timeToWait failed\n"); if (s1apTimeToWait_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TimeToWait, s1apTimeToWait_p); memcpy(&s1ap_MMEConfigurationUpdateFailureIEs->timeToWait, s1apTimeToWait_p, sizeof(S1ap_TimeToWait_t)); } break; /* Optional field */ @@ -5397,18 +4901,16 @@ int s1ap_decode_s1ap_mmeconfigurationupdatefailureies( s1ap_MMEConfigurationUpdateFailureIEs->presenceMask |= S1AP_MMECONFIGURATIONUPDATEFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_MMEConfigurationUpdateFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdatefailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_mmeconfigurationupdatefailureies\n", (int)ie_p->id); return -1; } } @@ -5426,7 +4928,7 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( assert(any_p != NULL); assert(s1ap_InitialContextSetupResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_InitialContextSetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_InitialContextSetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_InitialContextSetupResponse, (void**)&s1ap_InitialContextSetupResponse_p); @@ -5439,14 +4941,12 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_InitialContextSetupResponseIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -5454,14 +4954,12 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_InitialContextSetupResponseIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABSetupListCtxtSURes: @@ -5469,16 +4967,14 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( S1ap_E_RABSetupListCtxtSURes_t *s1apERABSetupListCtxtSURes_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABSetupListCtxtSURes, (void**)&s1apERABSetupListCtxtSURes_p); if (tempDecoded < 0 || s1apERABSetupListCtxtSURes_p == NULL) { - d_error("Decoding of IE e_RABSetupListCtxtSURes failed\n"); + d_error("Decoding of IE e_RABSetupListCtxtSURes failed\n"); if (s1apERABSetupListCtxtSURes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupListCtxtSURes, s1apERABSetupListCtxtSURes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABSetupListCtxtSURes, s1apERABSetupListCtxtSURes_p); if (s1ap_decode_s1ap_e_rabsetuplistctxtsures(&s1ap_InitialContextSetupResponseIEs->e_RABSetupListCtxtSURes, s1apERABSetupListCtxtSURes_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABSetupListCtxtSURes failed\n"); + d_error("Decoding of encapsulated IE s1apERABSetupListCtxtSURes failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupListCtxtSURes, s1apERABSetupListCtxtSURes_p); } } break; @@ -5489,16 +4985,14 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( s1ap_InitialContextSetupResponseIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPRESPONSEIES_E_RABFAILEDTOSETUPLISTCTXTSURES_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABFailedToSetupListCtxtSURes failed\n"); + d_error("Decoding of IE e_RABFailedToSetupListCtxtSURes failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_InitialContextSetupResponseIEs->e_RABFailedToSetupListCtxtSURes, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -5509,18 +5003,16 @@ int s1ap_decode_s1ap_initialcontextsetupresponseies( s1ap_InitialContextSetupResponseIEs->presenceMask |= S1AP_INITIALCONTEXTSETUPRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_InitialContextSetupResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetupresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_initialcontextsetupresponseies\n", (int)ie_p->id); return -1; } } @@ -5538,7 +5030,7 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( assert(any_p != NULL); assert(s1ap_DownlinkS1cdma2000tunnelingIEs != NULL); - d_trace(3, "Decoding message S1ap_DownlinkS1cdma2000tunnelingIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_DownlinkS1cdma2000tunnelingIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_DownlinkS1cdma2000tunneling, (void**)&s1ap_DownlinkS1cdma2000tunneling_p); @@ -5551,14 +5043,12 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_DownlinkS1cdma2000tunnelingIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -5566,14 +5056,12 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_DownlinkS1cdma2000tunnelingIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -5583,16 +5071,14 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( s1ap_DownlinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_DOWNLINKS1CDMA2000TUNNELINGIES_E_RABDATAFORWARDINGLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABDataForwardingList, (void**)&s1apERABDataForwardingList_p); if (tempDecoded < 0 || s1apERABDataForwardingList_p == NULL) { - d_error("Decoding of IE e_RABDataForwardingList failed\n"); + d_error("Decoding of IE e_RABDataForwardingList failed\n"); if (s1apERABDataForwardingList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); if (s1ap_decode_s1ap_e_rabdataforwardinglist(&s1ap_DownlinkS1cdma2000tunnelingIEs->e_RABDataForwardingList, s1apERABDataForwardingList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABDataForwardingList failed\n"); + d_error("Decoding of encapsulated IE s1apERABDataForwardingList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABDataForwardingList, s1apERABDataForwardingList_p); } } break; @@ -5603,14 +5089,12 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( s1ap_DownlinkS1cdma2000tunnelingIEs->presenceMask |= S1AP_DOWNLINKS1CDMA2000TUNNELINGIES_CDMA2000HOSTATUS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000HOStatus, (void**)&s1apCdma2000HOStatus_p); if (tempDecoded < 0 || s1apCdma2000HOStatus_p == NULL) { - d_error("Decoding of IE cdma2000HOStatus failed\n"); + d_error("Decoding of IE cdma2000HOStatus failed\n"); if (s1apCdma2000HOStatus_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000HOStatus, s1apCdma2000HOStatus_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000HOStatus, s1apCdma2000HOStatus_p); memcpy(&s1ap_DownlinkS1cdma2000tunnelingIEs->cdma2000HOStatus, s1apCdma2000HOStatus_p, sizeof(S1ap_Cdma2000HOStatus_t)); } break; case S1ap_ProtocolIE_ID_id_cdma2000RATType: @@ -5618,14 +5102,12 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( S1ap_Cdma2000RATType_t *s1apCdma2000RATType_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000RATType, (void**)&s1apCdma2000RATType_p); if (tempDecoded < 0 || s1apCdma2000RATType_p == NULL) { - d_error("Decoding of IE cdma2000RATType failed\n"); + d_error("Decoding of IE cdma2000RATType failed\n"); if (s1apCdma2000RATType_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000RATType, s1apCdma2000RATType_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000RATType, s1apCdma2000RATType_p); memcpy(&s1ap_DownlinkS1cdma2000tunnelingIEs->cdma2000RATType, s1apCdma2000RATType_p, sizeof(S1ap_Cdma2000RATType_t)); } break; case S1ap_ProtocolIE_ID_id_cdma2000PDU: @@ -5633,18 +5115,16 @@ int s1ap_decode_s1ap_downlinks1cdma2000tunnelingies( S1ap_Cdma2000PDU_t *s1apCdma2000PDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cdma2000PDU, (void**)&s1apCdma2000PDU_p); if (tempDecoded < 0 || s1apCdma2000PDU_p == NULL) { - d_error("Decoding of IE cdma2000PDU failed\n"); + d_error("Decoding of IE cdma2000PDU failed\n"); if (s1apCdma2000PDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cdma2000PDU, s1apCdma2000PDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cdma2000PDU, s1apCdma2000PDU_p); memcpy(&s1ap_DownlinkS1cdma2000tunnelingIEs->cdma2000PDU, s1apCdma2000PDU_p, sizeof(S1ap_Cdma2000PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_downlinks1cdma2000tunnelingies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_downlinks1cdma2000tunnelingies\n", (int)ie_p->id); return -1; } } @@ -5662,7 +5142,7 @@ int s1ap_decode_s1ap_overloadstopies( assert(any_p != NULL); assert(s1ap_OverloadStopIEs != NULL); - d_trace(3, "Decoding message S1ap_OverloadStopIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_OverloadStopIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_OverloadStop, (void**)&s1ap_OverloadStop_p); @@ -5677,18 +5157,16 @@ int s1ap_decode_s1ap_overloadstopies( s1ap_OverloadStopIEs->presenceMask |= S1AP_OVERLOADSTOPIES_GUMMEILIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEIList, (void**)&s1apGUMMEIList_p); if (tempDecoded < 0 || s1apGUMMEIList_p == NULL) { - d_error("Decoding of IE gummeiList failed\n"); + d_error("Decoding of IE gummeiList failed\n"); if (s1apGUMMEIList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEIList, s1apGUMMEIList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEIList, s1apGUMMEIList_p); memcpy(&s1ap_OverloadStopIEs->gummeiList, s1apGUMMEIList_p, sizeof(S1ap_GUMMEIList_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_overloadstopies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_overloadstopies\n", (int)ie_p->id); return -1; } } @@ -5706,7 +5184,7 @@ int s1ap_decode_s1ap_enbconfigurationupdateies( assert(any_p != NULL); assert(s1ap_ENBConfigurationUpdateIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBConfigurationUpdateIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBConfigurationUpdate, (void**)&s1ap_ENBConfigurationUpdate_p); @@ -5721,14 +5199,12 @@ int s1ap_decode_s1ap_enbconfigurationupdateies( s1ap_ENBConfigurationUpdateIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEIES_ENBNAME_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENBname, (void**)&s1apENBname_p); if (tempDecoded < 0 || s1apENBname_p == NULL) { - d_error("Decoding of IE eNBname failed\n"); + d_error("Decoding of IE eNBname failed\n"); if (s1apENBname_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENBname, s1apENBname_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENBname, s1apENBname_p); memcpy(&s1ap_ENBConfigurationUpdateIEs->eNBname, s1apENBname_p, sizeof(S1ap_ENBname_t)); } break; /* Optional field */ @@ -5738,14 +5214,12 @@ int s1ap_decode_s1ap_enbconfigurationupdateies( s1ap_ENBConfigurationUpdateIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEIES_SUPPORTEDTAS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SupportedTAs, (void**)&s1apSupportedTAs_p); if (tempDecoded < 0 || s1apSupportedTAs_p == NULL) { - d_error("Decoding of IE supportedTAs failed\n"); + d_error("Decoding of IE supportedTAs failed\n"); if (s1apSupportedTAs_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SupportedTAs, s1apSupportedTAs_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SupportedTAs, s1apSupportedTAs_p); memcpy(&s1ap_ENBConfigurationUpdateIEs->supportedTAs, s1apSupportedTAs_p, sizeof(S1ap_SupportedTAs_t)); } break; /* Optional field */ @@ -5755,14 +5229,12 @@ int s1ap_decode_s1ap_enbconfigurationupdateies( s1ap_ENBConfigurationUpdateIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEIES_CSG_IDLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_IdList, (void**)&s1apCSGIdList_p); if (tempDecoded < 0 || s1apCSGIdList_p == NULL) { - d_error("Decoding of IE csG_IdList failed\n"); + d_error("Decoding of IE csG_IdList failed\n"); if (s1apCSGIdList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); memcpy(&s1ap_ENBConfigurationUpdateIEs->csG_IdList, s1apCSGIdList_p, sizeof(S1ap_CSG_IdList_t)); } break; /* Optional field */ @@ -5772,18 +5244,16 @@ int s1ap_decode_s1ap_enbconfigurationupdateies( s1ap_ENBConfigurationUpdateIEs->presenceMask |= S1AP_ENBCONFIGURATIONUPDATEIES_DEFAULTPAGINGDRX_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PagingDRX, (void**)&s1apPagingDRX_p); if (tempDecoded < 0 || s1apPagingDRX_p == NULL) { - d_error("Decoding of IE defaultPagingDRX failed\n"); + d_error("Decoding of IE defaultPagingDRX failed\n"); if (s1apPagingDRX_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); memcpy(&s1ap_ENBConfigurationUpdateIEs->defaultPagingDRX, s1apPagingDRX_p, sizeof(S1ap_PagingDRX_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdateies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationupdateies\n", (int)ie_p->id); return -1; } } @@ -5801,7 +5271,7 @@ int s1ap_decode_s1ap_tracefailureindicationies( assert(any_p != NULL); assert(s1ap_TraceFailureIndicationIEs != NULL); - d_trace(3, "Decoding message S1ap_TraceFailureIndicationIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_TraceFailureIndicationIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_TraceFailureIndication, (void**)&s1ap_TraceFailureIndication_p); @@ -5814,14 +5284,12 @@ int s1ap_decode_s1ap_tracefailureindicationies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_TraceFailureIndicationIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -5829,14 +5297,12 @@ int s1ap_decode_s1ap_tracefailureindicationies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_TraceFailureIndicationIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_UTRAN_Trace_ID: @@ -5844,14 +5310,12 @@ int s1ap_decode_s1ap_tracefailureindicationies( S1ap_E_UTRAN_Trace_ID_t *s1apEUTRANTraceID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_UTRAN_Trace_ID, (void**)&s1apEUTRANTraceID_p); if (tempDecoded < 0 || s1apEUTRANTraceID_p == NULL) { - d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); + d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); if (s1apEUTRANTraceID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); memcpy(&s1ap_TraceFailureIndicationIEs->e_UTRAN_Trace_ID, s1apEUTRANTraceID_p, sizeof(S1ap_E_UTRAN_Trace_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -5859,18 +5323,16 @@ int s1ap_decode_s1ap_tracefailureindicationies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_TraceFailureIndicationIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_tracefailureindicationies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_tracefailureindicationies\n", (int)ie_p->id); return -1; } } @@ -5888,7 +5350,7 @@ int s1ap_decode_s1ap_enbconfigurationtransferies( assert(any_p != NULL); assert(s1ap_ENBConfigurationTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBConfigurationTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBConfigurationTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBConfigurationTransfer, (void**)&s1ap_ENBConfigurationTransfer_p); @@ -5903,18 +5365,16 @@ int s1ap_decode_s1ap_enbconfigurationtransferies( s1ap_ENBConfigurationTransferIEs->presenceMask |= S1AP_ENBCONFIGURATIONTRANSFERIES_SONCONFIGURATIONTRANSFERECT_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SONConfigurationTransfer, (void**)&s1apSONConfigurationTransfer_p); if (tempDecoded < 0 || s1apSONConfigurationTransfer_p == NULL) { - d_error("Decoding of IE sonConfigurationTransferECT failed\n"); + d_error("Decoding of IE sonConfigurationTransferECT failed\n"); if (s1apSONConfigurationTransfer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SONConfigurationTransfer, s1apSONConfigurationTransfer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SONConfigurationTransfer, s1apSONConfigurationTransfer_p); memcpy(&s1ap_ENBConfigurationTransferIEs->sonConfigurationTransferECT, s1apSONConfigurationTransfer_p, sizeof(S1ap_SONConfigurationTransfer_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationtransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbconfigurationtransferies\n", (int)ie_p->id); return -1; } } @@ -5932,7 +5392,7 @@ int s1ap_decode_s1ap_handoverfailureies( assert(any_p != NULL); assert(s1ap_HandoverFailureIEs != NULL); - d_trace(3, "Decoding message S1ap_HandoverFailureIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_HandoverFailureIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_HandoverFailure, (void**)&s1ap_HandoverFailure_p); @@ -5945,14 +5405,12 @@ int s1ap_decode_s1ap_handoverfailureies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_HandoverFailureIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -5960,14 +5418,12 @@ int s1ap_decode_s1ap_handoverfailureies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_HandoverFailureIEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; /* Optional field */ @@ -5977,18 +5433,16 @@ int s1ap_decode_s1ap_handoverfailureies( s1ap_HandoverFailureIEs->presenceMask |= S1AP_HANDOVERFAILUREIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_HandoverFailureIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_handoverfailureies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_handoverfailureies\n", (int)ie_p->id); return -1; } } @@ -6006,7 +5460,7 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( assert(any_p != NULL); assert(s1ap_E_RABSetupResponseIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABSetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABSetupResponseIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABSetupResponse, (void**)&s1ap_E_RABSetupResponse_p); @@ -6019,14 +5473,12 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABSetupResponseIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6034,14 +5486,12 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABSetupResponseIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -6051,16 +5501,14 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( s1ap_E_RABSetupResponseIEs->presenceMask |= S1AP_E_RABSETUPRESPONSEIES_E_RABSETUPLISTBEARERSURES_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABSetupListBearerSURes, (void**)&s1apERABSetupListBearerSURes_p); if (tempDecoded < 0 || s1apERABSetupListBearerSURes_p == NULL) { - d_error("Decoding of IE e_RABSetupListBearerSURes failed\n"); + d_error("Decoding of IE e_RABSetupListBearerSURes failed\n"); if (s1apERABSetupListBearerSURes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupListBearerSURes, s1apERABSetupListBearerSURes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABSetupListBearerSURes, s1apERABSetupListBearerSURes_p); if (s1ap_decode_s1ap_e_rabsetuplistbearersures(&s1ap_E_RABSetupResponseIEs->e_RABSetupListBearerSURes, s1apERABSetupListBearerSURes_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABSetupListBearerSURes failed\n"); + d_error("Decoding of encapsulated IE s1apERABSetupListBearerSURes failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupListBearerSURes, s1apERABSetupListBearerSURes_p); } } break; @@ -6071,16 +5519,14 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( s1ap_E_RABSetupResponseIEs->presenceMask |= S1AP_E_RABSETUPRESPONSEIES_E_RABFAILEDTOSETUPLISTBEARERSURES_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABFailedToSetupListBearerSURes failed\n"); + d_error("Decoding of IE e_RABFailedToSetupListBearerSURes failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_E_RABSetupResponseIEs->e_RABFailedToSetupListBearerSURes, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; @@ -6091,18 +5537,16 @@ int s1ap_decode_s1ap_e_rabsetupresponseies( s1ap_E_RABSetupResponseIEs->presenceMask |= S1AP_E_RABSETUPRESPONSEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_E_RABSetupResponseIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabsetupresponseies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabsetupresponseies\n", (int)ie_p->id); return -1; } } @@ -6120,7 +5564,7 @@ int s1ap_decode_s1ap_uecontextreleasecommand_ies( assert(any_p != NULL); assert(s1ap_UEContextReleaseCommand_IEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextReleaseCommand_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextReleaseCommand_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextReleaseCommand, (void**)&s1ap_UEContextReleaseCommand_p); @@ -6133,14 +5577,12 @@ int s1ap_decode_s1ap_uecontextreleasecommand_ies( S1ap_UE_S1AP_IDs_t *s1apUES1APIDs_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UE_S1AP_IDs, (void**)&s1apUES1APIDs_p); if (tempDecoded < 0 || s1apUES1APIDs_p == NULL) { - d_error("Decoding of IE uE_S1AP_IDs failed\n"); + d_error("Decoding of IE uE_S1AP_IDs failed\n"); if (s1apUES1APIDs_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UE_S1AP_IDs, s1apUES1APIDs_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UE_S1AP_IDs, s1apUES1APIDs_p); memcpy(&s1ap_UEContextReleaseCommand_IEs->uE_S1AP_IDs, s1apUES1APIDs_p, sizeof(S1ap_UE_S1AP_IDs_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -6148,18 +5590,16 @@ int s1ap_decode_s1ap_uecontextreleasecommand_ies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_UEContextReleaseCommand_IEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleasecommand_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleasecommand_ies\n", (int)ie_p->id); return -1; } } @@ -6177,7 +5617,7 @@ int s1ap_decode_s1ap_pathswitchrequesties( assert(any_p != NULL); assert(s1ap_PathSwitchRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_PathSwitchRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_PathSwitchRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_PathSwitchRequest, (void**)&s1ap_PathSwitchRequest_p); @@ -6190,14 +5630,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_PathSwitchRequestIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeSwitchedDLList: @@ -6205,16 +5643,14 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_E_RABToBeSwitchedDLList_t *s1apERABToBeSwitchedDLList_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSwitchedDLList, (void**)&s1apERABToBeSwitchedDLList_p); if (tempDecoded < 0 || s1apERABToBeSwitchedDLList_p == NULL) { - d_error("Decoding of IE e_RABToBeSwitchedDLList failed\n"); + d_error("Decoding of IE e_RABToBeSwitchedDLList failed\n"); if (s1apERABToBeSwitchedDLList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedDLList, s1apERABToBeSwitchedDLList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSwitchedDLList, s1apERABToBeSwitchedDLList_p); if (s1ap_decode_s1ap_e_rabtobeswitcheddllist(&s1ap_PathSwitchRequestIEs->e_RABToBeSwitchedDLList, s1apERABToBeSwitchedDLList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeSwitchedDLList failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeSwitchedDLList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedDLList, s1apERABToBeSwitchedDLList_p); } } break; @@ -6223,14 +5659,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE sourceMME_UE_S1AP_ID failed\n"); + d_error("Decoding of IE sourceMME_UE_S1AP_ID failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_PathSwitchRequestIEs->sourceMME_UE_S1AP_ID, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -6238,14 +5672,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_PathSwitchRequestIEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_TAI: @@ -6253,14 +5685,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_TAI_t *s1apTAI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAI, (void**)&s1apTAI_p); if (tempDecoded < 0 || s1apTAI_p == NULL) { - d_error("Decoding of IE tai failed\n"); + d_error("Decoding of IE tai failed\n"); if (s1apTAI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAI, s1apTAI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAI, s1apTAI_p); memcpy(&s1ap_PathSwitchRequestIEs->tai, s1apTAI_p, sizeof(S1ap_TAI_t)); } break; case S1ap_ProtocolIE_ID_id_UESecurityCapabilities: @@ -6268,14 +5698,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( S1ap_UESecurityCapabilities_t *s1apUESecurityCapabilities_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UESecurityCapabilities, (void**)&s1apUESecurityCapabilities_p); if (tempDecoded < 0 || s1apUESecurityCapabilities_p == NULL) { - d_error("Decoding of IE ueSecurityCapabilities failed\n"); + d_error("Decoding of IE ueSecurityCapabilities failed\n"); if (s1apUESecurityCapabilities_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UESecurityCapabilities, s1apUESecurityCapabilities_p); memcpy(&s1ap_PathSwitchRequestIEs->ueSecurityCapabilities, s1apUESecurityCapabilities_p, sizeof(S1ap_UESecurityCapabilities_t)); } break; /* Optional field */ @@ -6285,14 +5713,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( s1ap_PathSwitchRequestIEs->presenceMask |= S1AP_PATHSWITCHREQUESTIES_CSG_ID_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_Id, (void**)&s1apCSGId_p); if (tempDecoded < 0 || s1apCSGId_p == NULL) { - d_error("Decoding of IE csG_Id failed\n"); + d_error("Decoding of IE csG_Id failed\n"); if (s1apCSGId_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_Id, s1apCSGId_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_Id, s1apCSGId_p); memcpy(&s1ap_PathSwitchRequestIEs->csG_Id, s1apCSGId_p, sizeof(S1ap_CSG_Id_t)); } break; /* Optional field */ @@ -6302,14 +5728,12 @@ int s1ap_decode_s1ap_pathswitchrequesties( s1ap_PathSwitchRequestIEs->presenceMask |= S1AP_PATHSWITCHREQUESTIES_CELLACCESSMODE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CellAccessMode, (void**)&s1apCellAccessMode_p); if (tempDecoded < 0 || s1apCellAccessMode_p == NULL) { - d_error("Decoding of IE cellAccessMode failed\n"); + d_error("Decoding of IE cellAccessMode failed\n"); if (s1apCellAccessMode_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CellAccessMode, s1apCellAccessMode_p); memcpy(&s1ap_PathSwitchRequestIEs->cellAccessMode, s1apCellAccessMode_p, sizeof(S1ap_CellAccessMode_t)); } break; /* Optional field */ @@ -6319,18 +5743,16 @@ int s1ap_decode_s1ap_pathswitchrequesties( s1ap_PathSwitchRequestIEs->presenceMask |= S1AP_PATHSWITCHREQUESTIES_SOURCEMME_GUMMEI_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_GUMMEI, (void**)&s1apGUMMEI_p); if (tempDecoded < 0 || s1apGUMMEI_p == NULL) { - d_error("Decoding of IE sourceMME_GUMMEI failed\n"); + d_error("Decoding of IE sourceMME_GUMMEI failed\n"); if (s1apGUMMEI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_GUMMEI, s1apGUMMEI_p); memcpy(&s1ap_PathSwitchRequestIEs->sourceMME_GUMMEI, s1apGUMMEI_p, sizeof(S1ap_GUMMEI_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_pathswitchrequesties\n", (int)ie_p->id); return -1; } } @@ -6348,7 +5770,7 @@ int s1ap_decode_s1ap_downlinknastransport_ies( assert(any_p != NULL); assert(s1ap_DownlinkNASTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_DownlinkNASTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_DownlinkNASTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_DownlinkNASTransport, (void**)&s1ap_DownlinkNASTransport_p); @@ -6361,14 +5783,12 @@ int s1ap_decode_s1ap_downlinknastransport_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_DownlinkNASTransport_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6376,14 +5796,12 @@ int s1ap_decode_s1ap_downlinknastransport_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_DownlinkNASTransport_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_NAS_PDU: @@ -6391,14 +5809,12 @@ int s1ap_decode_s1ap_downlinknastransport_ies( S1ap_NAS_PDU_t *s1apNASPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NAS_PDU, (void**)&s1apNASPDU_p); if (tempDecoded < 0 || s1apNASPDU_p == NULL) { - d_error("Decoding of IE nas_pdu failed\n"); + d_error("Decoding of IE nas_pdu failed\n"); if (s1apNASPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); memcpy(&s1ap_DownlinkNASTransport_IEs->nas_pdu, s1apNASPDU_p, sizeof(S1ap_NAS_PDU_t)); } break; /* Optional field */ @@ -6408,14 +5824,12 @@ int s1ap_decode_s1ap_downlinknastransport_ies( s1ap_DownlinkNASTransport_IEs->presenceMask |= S1AP_DOWNLINKNASTRANSPORT_IES_HANDOVERRESTRICTIONLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_HandoverRestrictionList, (void**)&s1apHandoverRestrictionList_p); if (tempDecoded < 0 || s1apHandoverRestrictionList_p == NULL) { - d_error("Decoding of IE handoverRestrictionList failed\n"); + d_error("Decoding of IE handoverRestrictionList failed\n"); if (s1apHandoverRestrictionList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_HandoverRestrictionList, s1apHandoverRestrictionList_p); memcpy(&s1ap_DownlinkNASTransport_IEs->handoverRestrictionList, s1apHandoverRestrictionList_p, sizeof(S1ap_HandoverRestrictionList_t)); } break; /* Optional field */ @@ -6425,18 +5839,16 @@ int s1ap_decode_s1ap_downlinknastransport_ies( s1ap_DownlinkNASTransport_IEs->presenceMask |= S1AP_DOWNLINKNASTRANSPORT_IES_SUBSCRIBERPROFILEIDFORRFP_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SubscriberProfileIDforRFP, (void**)&s1apSubscriberProfileIDforRFP_p); if (tempDecoded < 0 || s1apSubscriberProfileIDforRFP_p == NULL) { - d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); + d_error("Decoding of IE subscriberProfileIDforRFP failed\n"); if (s1apSubscriberProfileIDforRFP_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SubscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p); memcpy(&s1ap_DownlinkNASTransport_IEs->subscriberProfileIDforRFP, s1apSubscriberProfileIDforRFP_p, sizeof(S1ap_SubscriberProfileIDforRFP_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_downlinknastransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_downlinknastransport_ies\n", (int)ie_p->id); return -1; } } @@ -6454,7 +5866,7 @@ int s1ap_decode_s1ap_e_rabreleaseindicationies( assert(any_p != NULL); assert(s1ap_E_RABReleaseIndicationIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABReleaseIndicationIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABReleaseIndicationIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABReleaseIndication, (void**)&s1ap_E_RABReleaseIndication_p); @@ -6467,14 +5879,12 @@ int s1ap_decode_s1ap_e_rabreleaseindicationies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABReleaseIndicationIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6482,14 +5892,12 @@ int s1ap_decode_s1ap_e_rabreleaseindicationies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABReleaseIndicationIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABReleasedList: @@ -6497,21 +5905,19 @@ int s1ap_decode_s1ap_e_rabreleaseindicationies( S1ap_E_RABList_t *s1apERABList_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABList, (void**)&s1apERABList_p); if (tempDecoded < 0 || s1apERABList_p == NULL) { - d_error("Decoding of IE e_RABReleasedList failed\n"); + d_error("Decoding of IE e_RABReleasedList failed\n"); if (s1apERABList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABList, s1apERABList_p); if (s1ap_decode_s1ap_e_rablist(&s1ap_E_RABReleaseIndicationIEs->e_RABReleasedList, s1apERABList_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABList failed\n"); + d_error("Decoding of encapsulated IE s1apERABList failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABList, s1apERABList_p); } } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleaseindicationies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabreleaseindicationies\n", (int)ie_p->id); return -1; } } @@ -6529,7 +5935,7 @@ int s1ap_decode_s1ap_s1setuprequesties( assert(any_p != NULL); assert(s1ap_S1SetupRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_S1SetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_S1SetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_S1SetupRequest, (void**)&s1ap_S1SetupRequest_p); @@ -6542,14 +5948,12 @@ int s1ap_decode_s1ap_s1setuprequesties( S1ap_Global_ENB_ID_t *s1apGlobalENBID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Global_ENB_ID, (void**)&s1apGlobalENBID_p); if (tempDecoded < 0 || s1apGlobalENBID_p == NULL) { - d_error("Decoding of IE global_ENB_ID failed\n"); + d_error("Decoding of IE global_ENB_ID failed\n"); if (s1apGlobalENBID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Global_ENB_ID, s1apGlobalENBID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Global_ENB_ID, s1apGlobalENBID_p); memcpy(&s1ap_S1SetupRequestIEs->global_ENB_ID, s1apGlobalENBID_p, sizeof(S1ap_Global_ENB_ID_t)); } break; /* Optional field */ @@ -6559,14 +5963,12 @@ int s1ap_decode_s1ap_s1setuprequesties( s1ap_S1SetupRequestIEs->presenceMask |= S1AP_S1SETUPREQUESTIES_ENBNAME_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENBname, (void**)&s1apENBname_p); if (tempDecoded < 0 || s1apENBname_p == NULL) { - d_error("Decoding of IE eNBname failed\n"); + d_error("Decoding of IE eNBname failed\n"); if (s1apENBname_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENBname, s1apENBname_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENBname, s1apENBname_p); memcpy(&s1ap_S1SetupRequestIEs->eNBname, s1apENBname_p, sizeof(S1ap_ENBname_t)); } break; case S1ap_ProtocolIE_ID_id_SupportedTAs: @@ -6574,14 +5976,12 @@ int s1ap_decode_s1ap_s1setuprequesties( S1ap_SupportedTAs_t *s1apSupportedTAs_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_SupportedTAs, (void**)&s1apSupportedTAs_p); if (tempDecoded < 0 || s1apSupportedTAs_p == NULL) { - d_error("Decoding of IE supportedTAs failed\n"); + d_error("Decoding of IE supportedTAs failed\n"); if (s1apSupportedTAs_p) ASN_STRUCT_FREE(asn_DEF_S1ap_SupportedTAs, s1apSupportedTAs_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_SupportedTAs, s1apSupportedTAs_p); memcpy(&s1ap_S1SetupRequestIEs->supportedTAs, s1apSupportedTAs_p, sizeof(S1ap_SupportedTAs_t)); } break; case S1ap_ProtocolIE_ID_id_DefaultPagingDRX: @@ -6589,14 +5989,12 @@ int s1ap_decode_s1ap_s1setuprequesties( S1ap_PagingDRX_t *s1apPagingDRX_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PagingDRX, (void**)&s1apPagingDRX_p); if (tempDecoded < 0 || s1apPagingDRX_p == NULL) { - d_error("Decoding of IE defaultPagingDRX failed\n"); + d_error("Decoding of IE defaultPagingDRX failed\n"); if (s1apPagingDRX_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PagingDRX, s1apPagingDRX_p); memcpy(&s1ap_S1SetupRequestIEs->defaultPagingDRX, s1apPagingDRX_p, sizeof(S1ap_PagingDRX_t)); } break; /* Optional field */ @@ -6606,18 +6004,16 @@ int s1ap_decode_s1ap_s1setuprequesties( s1ap_S1SetupRequestIEs->presenceMask |= S1AP_S1SETUPREQUESTIES_CSG_IDLIST_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CSG_IdList, (void**)&s1apCSGIdList_p); if (tempDecoded < 0 || s1apCSGIdList_p == NULL) { - d_error("Decoding of IE csG_IdList failed\n"); + d_error("Decoding of IE csG_IdList failed\n"); if (s1apCSGIdList_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CSG_IdList, s1apCSGIdList_p); memcpy(&s1ap_S1SetupRequestIEs->csG_IdList, s1apCSGIdList_p, sizeof(S1ap_CSG_IdList_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_s1setuprequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_s1setuprequesties\n", (int)ie_p->id); return -1; } } @@ -6635,7 +6031,7 @@ int s1ap_decode_s1ap_nasnondeliveryindication_ies( assert(any_p != NULL); assert(s1ap_NASNonDeliveryIndication_IEs != NULL); - d_trace(3, "Decoding message S1ap_NASNonDeliveryIndication_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_NASNonDeliveryIndication_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_NASNonDeliveryIndication, (void**)&s1ap_NASNonDeliveryIndication_p); @@ -6648,14 +6044,12 @@ int s1ap_decode_s1ap_nasnondeliveryindication_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_NASNonDeliveryIndication_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6663,14 +6057,12 @@ int s1ap_decode_s1ap_nasnondeliveryindication_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_NASNonDeliveryIndication_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_NAS_PDU: @@ -6678,14 +6070,12 @@ int s1ap_decode_s1ap_nasnondeliveryindication_ies( S1ap_NAS_PDU_t *s1apNASPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_NAS_PDU, (void**)&s1apNASPDU_p); if (tempDecoded < 0 || s1apNASPDU_p == NULL) { - d_error("Decoding of IE nas_pdu failed\n"); + d_error("Decoding of IE nas_pdu failed\n"); if (s1apNASPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_NAS_PDU, s1apNASPDU_p); memcpy(&s1ap_NASNonDeliveryIndication_IEs->nas_pdu, s1apNASPDU_p, sizeof(S1ap_NAS_PDU_t)); } break; case S1ap_ProtocolIE_ID_id_Cause: @@ -6693,18 +6083,16 @@ int s1ap_decode_s1ap_nasnondeliveryindication_ies( S1ap_Cause_t *s1apCause_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Cause, (void**)&s1apCause_p); if (tempDecoded < 0 || s1apCause_p == NULL) { - d_error("Decoding of IE cause failed\n"); + d_error("Decoding of IE cause failed\n"); if (s1apCause_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Cause, s1apCause_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Cause, s1apCause_p); memcpy(&s1ap_NASNonDeliveryIndication_IEs->cause, s1apCause_p, sizeof(S1ap_Cause_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_nasnondeliveryindication_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_nasnondeliveryindication_ies\n", (int)ie_p->id); return -1; } } @@ -6722,7 +6110,7 @@ int s1ap_decode_s1ap_celltraffictraceies( assert(any_p != NULL); assert(s1ap_CellTrafficTraceIEs != NULL); - d_trace(3, "Decoding message S1ap_CellTrafficTraceIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_CellTrafficTraceIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_CellTrafficTrace, (void**)&s1ap_CellTrafficTrace_p); @@ -6735,14 +6123,12 @@ int s1ap_decode_s1ap_celltraffictraceies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_CellTrafficTraceIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6750,14 +6136,12 @@ int s1ap_decode_s1ap_celltraffictraceies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_CellTrafficTraceIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_E_UTRAN_Trace_ID: @@ -6765,14 +6149,12 @@ int s1ap_decode_s1ap_celltraffictraceies( S1ap_E_UTRAN_Trace_ID_t *s1apEUTRANTraceID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_UTRAN_Trace_ID, (void**)&s1apEUTRANTraceID_p); if (tempDecoded < 0 || s1apEUTRANTraceID_p == NULL) { - d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); + d_error("Decoding of IE e_UTRAN_Trace_ID failed\n"); if (s1apEUTRANTraceID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_UTRAN_Trace_ID, s1apEUTRANTraceID_p); memcpy(&s1ap_CellTrafficTraceIEs->e_UTRAN_Trace_ID, s1apEUTRANTraceID_p, sizeof(S1ap_E_UTRAN_Trace_ID_t)); } break; case S1ap_ProtocolIE_ID_id_EUTRAN_CGI: @@ -6780,14 +6162,12 @@ int s1ap_decode_s1ap_celltraffictraceies( S1ap_EUTRAN_CGI_t *s1apEUTRANCGI_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_EUTRAN_CGI, (void**)&s1apEUTRANCGI_p); if (tempDecoded < 0 || s1apEUTRANCGI_p == NULL) { - d_error("Decoding of IE eutran_cgi failed\n"); + d_error("Decoding of IE eutran_cgi failed\n"); if (s1apEUTRANCGI_p) ASN_STRUCT_FREE(asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_EUTRAN_CGI, s1apEUTRANCGI_p); memcpy(&s1ap_CellTrafficTraceIEs->eutran_cgi, s1apEUTRANCGI_p, sizeof(S1ap_EUTRAN_CGI_t)); } break; case S1ap_ProtocolIE_ID_id_TraceCollectionEntityIPAddress: @@ -6795,14 +6175,12 @@ int s1ap_decode_s1ap_celltraffictraceies( S1ap_TransportLayerAddress_t *s1apTransportLayerAddress_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TransportLayerAddress, (void**)&s1apTransportLayerAddress_p); if (tempDecoded < 0 || s1apTransportLayerAddress_p == NULL) { - d_error("Decoding of IE traceCollectionEntityIPAddress failed\n"); + d_error("Decoding of IE traceCollectionEntityIPAddress failed\n"); if (s1apTransportLayerAddress_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TransportLayerAddress, s1apTransportLayerAddress_p); memcpy(&s1ap_CellTrafficTraceIEs->traceCollectionEntityIPAddress, s1apTransportLayerAddress_p, sizeof(S1ap_TransportLayerAddress_t)); } break; /* Optional field */ @@ -6812,18 +6190,16 @@ int s1ap_decode_s1ap_celltraffictraceies( s1ap_CellTrafficTraceIEs->presenceMask |= S1AP_CELLTRAFFICTRACEIES_PRIVACYINDICATOR_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_PrivacyIndicator, (void**)&s1apPrivacyIndicator_p); if (tempDecoded < 0 || s1apPrivacyIndicator_p == NULL) { - d_error("Decoding of IE privacyIndicator failed\n"); + d_error("Decoding of IE privacyIndicator failed\n"); if (s1apPrivacyIndicator_p) ASN_STRUCT_FREE(asn_DEF_S1ap_PrivacyIndicator, s1apPrivacyIndicator_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_PrivacyIndicator, s1apPrivacyIndicator_p); memcpy(&s1ap_CellTrafficTraceIEs->privacyIndicator, s1apPrivacyIndicator_p, sizeof(S1ap_PrivacyIndicator_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_celltraffictraceies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_celltraffictraceies\n", (int)ie_p->id); return -1; } } @@ -6841,7 +6217,7 @@ int s1ap_decode_s1ap_e_rabsetuprequesties( assert(any_p != NULL); assert(s1ap_E_RABSetupRequestIEs != NULL); - d_trace(3, "Decoding message S1ap_E_RABSetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_E_RABSetupRequestIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_E_RABSetupRequest, (void**)&s1ap_E_RABSetupRequest_p); @@ -6854,14 +6230,12 @@ int s1ap_decode_s1ap_e_rabsetuprequesties( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_E_RABSetupRequestIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6869,14 +6243,12 @@ int s1ap_decode_s1ap_e_rabsetuprequesties( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_E_RABSetupRequestIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -6886,14 +6258,12 @@ int s1ap_decode_s1ap_e_rabsetuprequesties( s1ap_E_RABSetupRequestIEs->presenceMask |= S1AP_E_RABSETUPREQUESTIES_UEAGGREGATEMAXIMUMBITRATE_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UEAggregateMaximumBitrate, (void**)&s1apUEAggregateMaximumBitrate_p); if (tempDecoded < 0 || s1apUEAggregateMaximumBitrate_p == NULL) { - d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); + d_error("Decoding of IE uEaggregateMaximumBitrate failed\n"); if (s1apUEAggregateMaximumBitrate_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UEAggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p); memcpy(&s1ap_E_RABSetupRequestIEs->uEaggregateMaximumBitrate, s1apUEAggregateMaximumBitrate_p, sizeof(S1ap_UEAggregateMaximumBitrate_t)); } break; case S1ap_ProtocolIE_ID_id_E_RABToBeSetupListBearerSUReq: @@ -6901,21 +6271,19 @@ int s1ap_decode_s1ap_e_rabsetuprequesties( S1ap_E_RABToBeSetupListBearerSUReq_t *s1apERABToBeSetupListBearerSUReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupListBearerSUReq, (void**)&s1apERABToBeSetupListBearerSUReq_p); if (tempDecoded < 0 || s1apERABToBeSetupListBearerSUReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupListBearerSUReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupListBearerSUReq failed\n"); if (s1apERABToBeSetupListBearerSUReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListBearerSUReq, s1apERABToBeSetupListBearerSUReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupListBearerSUReq, s1apERABToBeSetupListBearerSUReq_p); if (s1ap_decode_s1ap_e_rabtobesetuplistbearersureq(&s1ap_E_RABSetupRequestIEs->e_RABToBeSetupListBearerSUReq, s1apERABToBeSetupListBearerSUReq_p) < 0) { - d_error("Decoding of encapsulated IE s1apERABToBeSetupListBearerSUReq failed\n"); + d_error("Decoding of encapsulated IE s1apERABToBeSetupListBearerSUReq failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupListBearerSUReq, s1apERABToBeSetupListBearerSUReq_p); } } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_e_rabsetuprequesties\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_e_rabsetuprequesties\n", (int)ie_p->id); return -1; } } @@ -6933,7 +6301,7 @@ int s1ap_decode_s1ap_enbstatustransferies( assert(any_p != NULL); assert(s1ap_ENBStatusTransferIEs != NULL); - d_trace(3, "Decoding message S1ap_ENBStatusTransferIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ENBStatusTransferIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ENBStatusTransfer, (void**)&s1ap_ENBStatusTransfer_p); @@ -6946,14 +6314,12 @@ int s1ap_decode_s1ap_enbstatustransferies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_ENBStatusTransferIEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -6961,14 +6327,12 @@ int s1ap_decode_s1ap_enbstatustransferies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_ENBStatusTransferIEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_StatusTransfer_TransparentContainer: @@ -6976,18 +6340,16 @@ int s1ap_decode_s1ap_enbstatustransferies( S1ap_ENB_StatusTransfer_TransparentContainer_t *s1apENBStatusTransferTransparentContainer_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, (void**)&s1apENBStatusTransferTransparentContainer_p); if (tempDecoded < 0 || s1apENBStatusTransferTransparentContainer_p == NULL) { - d_error("Decoding of IE eNB_StatusTransfer_TransparentContainer failed\n"); + d_error("Decoding of IE eNB_StatusTransfer_TransparentContainer failed\n"); if (s1apENBStatusTransferTransparentContainer_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p); memcpy(&s1ap_ENBStatusTransferIEs->eNB_StatusTransfer_TransparentContainer, s1apENBStatusTransferTransparentContainer_p, sizeof(S1ap_ENB_StatusTransfer_TransparentContainer_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_enbstatustransferies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_enbstatustransferies\n", (int)ie_p->id); return -1; } } @@ -7005,7 +6367,7 @@ int s1ap_decode_s1ap_resetacknowledgeies( assert(any_p != NULL); assert(s1ap_ResetAcknowledgeIEs != NULL); - d_trace(3, "Decoding message S1ap_ResetAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_ResetAcknowledgeIEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_ResetAcknowledge, (void**)&s1ap_ResetAcknowledge_p); @@ -7020,16 +6382,14 @@ int s1ap_decode_s1ap_resetacknowledgeies( s1ap_ResetAcknowledgeIEs->presenceMask |= S1AP_RESETACKNOWLEDGEIES_UE_ASSOCIATEDLOGICALS1_CONNECTIONLISTRESACK_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionListResAck, (void**)&s1apUEassociatedLogicalS1ConnectionListResAck_p); if (tempDecoded < 0 || s1apUEassociatedLogicalS1ConnectionListResAck_p == NULL) { - d_error("Decoding of IE uE_associatedLogicalS1_ConnectionListResAck failed\n"); + d_error("Decoding of IE uE_associatedLogicalS1_ConnectionListResAck failed\n"); if (s1apUEassociatedLogicalS1ConnectionListResAck_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionListResAck, s1apUEassociatedLogicalS1ConnectionListResAck_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionListResAck, s1apUEassociatedLogicalS1ConnectionListResAck_p); if (s1ap_decode_s1ap_ue_associatedlogicals1_connectionlistresack(&s1ap_ResetAcknowledgeIEs->uE_associatedLogicalS1_ConnectionListResAck, s1apUEassociatedLogicalS1ConnectionListResAck_p) < 0) { - d_error("Decoding of encapsulated IE s1apUEassociatedLogicalS1ConnectionListResAck failed\n"); + d_error("Decoding of encapsulated IE s1apUEassociatedLogicalS1ConnectionListResAck failed\n"); ASN_STRUCT_FREE(asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionListResAck, s1apUEassociatedLogicalS1ConnectionListResAck_p); } } break; @@ -7040,18 +6400,16 @@ int s1ap_decode_s1ap_resetacknowledgeies( s1ap_ResetAcknowledgeIEs->presenceMask |= S1AP_RESETACKNOWLEDGEIES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_ResetAcknowledgeIEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_resetacknowledgeies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_resetacknowledgeies\n", (int)ie_p->id); return -1; } } @@ -7069,7 +6427,7 @@ int s1ap_decode_s1ap_uecontextreleasecomplete_ies( assert(any_p != NULL); assert(s1ap_UEContextReleaseComplete_IEs != NULL); - d_trace(3, "Decoding message S1ap_UEContextReleaseComplete_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UEContextReleaseComplete_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UEContextReleaseComplete, (void**)&s1ap_UEContextReleaseComplete_p); @@ -7082,14 +6440,12 @@ int s1ap_decode_s1ap_uecontextreleasecomplete_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UEContextReleaseComplete_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -7097,14 +6453,12 @@ int s1ap_decode_s1ap_uecontextreleasecomplete_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UEContextReleaseComplete_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; /* Optional field */ @@ -7114,18 +6468,16 @@ int s1ap_decode_s1ap_uecontextreleasecomplete_ies( s1ap_UEContextReleaseComplete_IEs->presenceMask |= S1AP_UECONTEXTRELEASECOMPLETE_IES_CRITICALITYDIAGNOSTICS_PRESENT; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_CriticalityDiagnostics, (void**)&s1apCriticalityDiagnostics_p); if (tempDecoded < 0 || s1apCriticalityDiagnostics_p == NULL) { - d_error("Decoding of IE criticalityDiagnostics failed\n"); + d_error("Decoding of IE criticalityDiagnostics failed\n"); if (s1apCriticalityDiagnostics_p) ASN_STRUCT_FREE(asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_CriticalityDiagnostics, s1apCriticalityDiagnostics_p); memcpy(&s1ap_UEContextReleaseComplete_IEs->criticalityDiagnostics, s1apCriticalityDiagnostics_p, sizeof(S1ap_CriticalityDiagnostics_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleasecomplete_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uecontextreleasecomplete_ies\n", (int)ie_p->id); return -1; } } @@ -7143,7 +6495,7 @@ int s1ap_decode_s1ap_uplinkueassociatedlppatransport_ies( assert(any_p != NULL); assert(s1ap_UplinkUEAssociatedLPPaTransport_IEs != NULL); - d_trace(3, "Decoding message S1ap_UplinkUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); + d_trace(3, "Decoding message S1ap_UplinkUEAssociatedLPPaTransport_IEs (%s:%d)\n", __FILE__, __LINE__); ANY_to_type_aper(any_p, &asn_DEF_S1ap_UplinkUEAssociatedLPPaTransport, (void**)&s1ap_UplinkUEAssociatedLPPaTransport_p); @@ -7156,14 +6508,12 @@ int s1ap_decode_s1ap_uplinkueassociatedlppatransport_ies( S1ap_MME_UE_S1AP_ID_t *s1apMMEUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_MME_UE_S1AP_ID, (void**)&s1apMMEUES1APID_p); if (tempDecoded < 0 || s1apMMEUES1APID_p == NULL) { - d_error("Decoding of IE mme_ue_s1ap_id failed\n"); + d_error("Decoding of IE mme_ue_s1ap_id failed\n"); if (s1apMMEUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_MME_UE_S1AP_ID, s1apMMEUES1APID_p); memcpy(&s1ap_UplinkUEAssociatedLPPaTransport_IEs->mme_ue_s1ap_id, s1apMMEUES1APID_p, sizeof(S1ap_MME_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_eNB_UE_S1AP_ID: @@ -7171,14 +6521,12 @@ int s1ap_decode_s1ap_uplinkueassociatedlppatransport_ies( S1ap_ENB_UE_S1AP_ID_t *s1apENBUES1APID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_ENB_UE_S1AP_ID, (void**)&s1apENBUES1APID_p); if (tempDecoded < 0 || s1apENBUES1APID_p == NULL) { - d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); + d_error("Decoding of IE eNB_UE_S1AP_ID failed\n"); if (s1apENBUES1APID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_ENB_UE_S1AP_ID, s1apENBUES1APID_p); memcpy(&s1ap_UplinkUEAssociatedLPPaTransport_IEs->eNB_UE_S1AP_ID, s1apENBUES1APID_p, sizeof(S1ap_ENB_UE_S1AP_ID_t)); } break; case S1ap_ProtocolIE_ID_id_Routing_ID: @@ -7186,14 +6534,12 @@ int s1ap_decode_s1ap_uplinkueassociatedlppatransport_ies( S1ap_Routing_ID_t *s1apRoutingID_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Routing_ID, (void**)&s1apRoutingID_p); if (tempDecoded < 0 || s1apRoutingID_p == NULL) { - d_error("Decoding of IE routing_ID failed\n"); + d_error("Decoding of IE routing_ID failed\n"); if (s1apRoutingID_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Routing_ID, s1apRoutingID_p); memcpy(&s1ap_UplinkUEAssociatedLPPaTransport_IEs->routing_ID, s1apRoutingID_p, sizeof(S1ap_Routing_ID_t)); } break; case S1ap_ProtocolIE_ID_id_LPPa_PDU: @@ -7201,18 +6547,16 @@ int s1ap_decode_s1ap_uplinkueassociatedlppatransport_ies( S1ap_LPPa_PDU_t *s1apLPPaPDU_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_LPPa_PDU, (void**)&s1apLPPaPDU_p); if (tempDecoded < 0 || s1apLPPaPDU_p == NULL) { - d_error("Decoding of IE lpPa_PDU failed\n"); + d_error("Decoding of IE lpPa_PDU failed\n"); if (s1apLPPaPDU_p) ASN_STRUCT_FREE(asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_LPPa_PDU, s1apLPPaPDU_p); memcpy(&s1ap_UplinkUEAssociatedLPPaTransport_IEs->lpPa_PDU, s1apLPPaPDU_p, sizeof(S1ap_LPPa_PDU_t)); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7237,18 +6581,16 @@ int s1ap_decode_s1ap_e_rabfailedtosetuplisthoreqack( S1ap_E_RABFailedToSetupItemHOReqAck_t *s1apERABFailedToSetupItemHOReqAck_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABFailedToSetupItemHOReqAck, (void**)&s1apERABFailedToSetupItemHOReqAck_p); if (tempDecoded < 0 || s1apERABFailedToSetupItemHOReqAck_p == NULL) { - d_error("Decoding of IE e_RABFailedtoSetupItemHOReqAck for message S1ap_E_RABFailedtoSetupListHOReqAck failed\n"); + d_error("Decoding of IE e_RABFailedtoSetupItemHOReqAck for message S1ap_E_RABFailedtoSetupListHOReqAck failed\n"); if (s1apERABFailedToSetupItemHOReqAck_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABFailedToSetupItemHOReqAck, s1apERABFailedToSetupItemHOReqAck_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABFailedToSetupItemHOReqAck, s1apERABFailedToSetupItemHOReqAck_p); ASN_SEQUENCE_ADD(&s1ap_E_RABFailedtoSetupListHOReqAckIEs->s1ap_E_RABFailedtoSetupItemHOReqAck, s1apERABFailedToSetupItemHOReqAck_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7273,18 +6615,16 @@ int s1ap_decode_s1ap_e_rabreleaselistbearerrelcomp( S1ap_E_RABReleaseItemBearerRelComp_t *s1apERABReleaseItemBearerRelComp_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABReleaseItemBearerRelComp, (void**)&s1apERABReleaseItemBearerRelComp_p); if (tempDecoded < 0 || s1apERABReleaseItemBearerRelComp_p == NULL) { - d_error("Decoding of IE e_RABReleaseItemBearerRelComp for message S1ap_E_RABReleaseListBearerRelComp failed\n"); + d_error("Decoding of IE e_RABReleaseItemBearerRelComp for message S1ap_E_RABReleaseListBearerRelComp failed\n"); if (s1apERABReleaseItemBearerRelComp_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABReleaseItemBearerRelComp, s1apERABReleaseItemBearerRelComp_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABReleaseItemBearerRelComp, s1apERABReleaseItemBearerRelComp_p); ASN_SEQUENCE_ADD(&s1ap_E_RABReleaseListBearerRelCompIEs->s1ap_E_RABReleaseItemBearerRelComp, s1apERABReleaseItemBearerRelComp_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7309,18 +6649,16 @@ int s1ap_decode_s1ap_e_rabtobesetuplisthoreq( S1ap_E_RABToBeSetupItemHOReq_t *s1apERABToBeSetupItemHOReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupItemHOReq, (void**)&s1apERABToBeSetupItemHOReq_p); if (tempDecoded < 0 || s1apERABToBeSetupItemHOReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupItemHOReq for message S1ap_E_RABToBeSetupListHOReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupItemHOReq for message S1ap_E_RABToBeSetupListHOReq failed\n"); if (s1apERABToBeSetupItemHOReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupItemHOReq, s1apERABToBeSetupItemHOReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupItemHOReq, s1apERABToBeSetupItemHOReq_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeSetupListHOReqIEs->s1ap_E_RABToBeSetupItemHOReq, s1apERABToBeSetupItemHOReq_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7345,18 +6683,16 @@ int s1ap_decode_s1ap_e_rabtobemodifiedlistbearermodreq( S1ap_E_RABToBeModifiedItemBearerModReq_t *s1apERABToBeModifiedItemBearerModReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeModifiedItemBearerModReq, (void**)&s1apERABToBeModifiedItemBearerModReq_p); if (tempDecoded < 0 || s1apERABToBeModifiedItemBearerModReq_p == NULL) { - d_error("Decoding of IE e_RABToBeModifiedItemBearerModReq for message S1ap_E_RABToBeModifiedListBearerModReq failed\n"); + d_error("Decoding of IE e_RABToBeModifiedItemBearerModReq for message S1ap_E_RABToBeModifiedListBearerModReq failed\n"); if (s1apERABToBeModifiedItemBearerModReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeModifiedItemBearerModReq, s1apERABToBeModifiedItemBearerModReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeModifiedItemBearerModReq, s1apERABToBeModifiedItemBearerModReq_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeModifiedListBearerModReqIEs->s1ap_E_RABToBeModifiedItemBearerModReq, s1apERABToBeModifiedItemBearerModReq_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7381,18 +6717,16 @@ int s1ap_decode_s1ap_e_rabadmittedlist( S1ap_E_RABAdmittedItem_t *s1apERABAdmittedItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABAdmittedItem, (void**)&s1apERABAdmittedItem_p); if (tempDecoded < 0 || s1apERABAdmittedItem_p == NULL) { - d_error("Decoding of IE e_RABAdmittedItem for message S1ap_E_RABAdmittedList failed\n"); + d_error("Decoding of IE e_RABAdmittedItem for message S1ap_E_RABAdmittedList failed\n"); if (s1apERABAdmittedItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABAdmittedItem, s1apERABAdmittedItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABAdmittedItem, s1apERABAdmittedItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABAdmittedListIEs->s1ap_E_RABAdmittedItem, s1apERABAdmittedItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7417,18 +6751,16 @@ int s1ap_decode_s1ap_e_rabtobesetuplistbearersureq( S1ap_E_RABToBeSetupItemBearerSUReq_t *s1apERABToBeSetupItemBearerSUReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupItemBearerSUReq, (void**)&s1apERABToBeSetupItemBearerSUReq_p); if (tempDecoded < 0 || s1apERABToBeSetupItemBearerSUReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupItemBearerSUReq for message S1ap_E_RABToBeSetupListBearerSUReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupItemBearerSUReq for message S1ap_E_RABToBeSetupListBearerSUReq failed\n"); if (s1apERABToBeSetupItemBearerSUReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupItemBearerSUReq, s1apERABToBeSetupItemBearerSUReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupItemBearerSUReq, s1apERABToBeSetupItemBearerSUReq_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeSetupListBearerSUReqIEs->s1ap_E_RABToBeSetupItemBearerSUReq, s1apERABToBeSetupItemBearerSUReq_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7453,18 +6785,16 @@ int s1ap_decode_s1ap_e_rabdataforwardinglist( S1ap_E_RABDataForwardingItem_t *s1apERABDataForwardingItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABDataForwardingItem, (void**)&s1apERABDataForwardingItem_p); if (tempDecoded < 0 || s1apERABDataForwardingItem_p == NULL) { - d_error("Decoding of IE e_RABDataForwardingItem for message S1ap_E_RABDataForwardingList failed\n"); + d_error("Decoding of IE e_RABDataForwardingItem for message S1ap_E_RABDataForwardingList failed\n"); if (s1apERABDataForwardingItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABDataForwardingItem, s1apERABDataForwardingItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABDataForwardingItem, s1apERABDataForwardingItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABDataForwardingListIEs->s1ap_E_RABDataForwardingItem, s1apERABDataForwardingItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7489,18 +6819,16 @@ int s1ap_decode_s1ap_e_rabtobeswitcheddllist( S1ap_E_RABToBeSwitchedDLItem_t *s1apERABToBeSwitchedDLItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSwitchedDLItem, (void**)&s1apERABToBeSwitchedDLItem_p); if (tempDecoded < 0 || s1apERABToBeSwitchedDLItem_p == NULL) { - d_error("Decoding of IE e_RABToBeSwitchedDLItem for message S1ap_E_RABToBeSwitchedDLList failed\n"); + d_error("Decoding of IE e_RABToBeSwitchedDLItem for message S1ap_E_RABToBeSwitchedDLList failed\n"); if (s1apERABToBeSwitchedDLItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedDLItem, s1apERABToBeSwitchedDLItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSwitchedDLItem, s1apERABToBeSwitchedDLItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeSwitchedDLListIEs->s1ap_E_RABToBeSwitchedDLItem, s1apERABToBeSwitchedDLItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7525,18 +6853,16 @@ int s1ap_decode_s1ap_e_rabsetuplistctxtsures( S1ap_E_RABSetupItemCtxtSURes_t *s1apERABSetupItemCtxtSURes_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABSetupItemCtxtSURes, (void**)&s1apERABSetupItemCtxtSURes_p); if (tempDecoded < 0 || s1apERABSetupItemCtxtSURes_p == NULL) { - d_error("Decoding of IE e_RABSetupItemCtxtSURes for message S1ap_E_RABSetupListCtxtSURes failed\n"); + d_error("Decoding of IE e_RABSetupItemCtxtSURes for message S1ap_E_RABSetupListCtxtSURes failed\n"); if (s1apERABSetupItemCtxtSURes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupItemCtxtSURes, s1apERABSetupItemCtxtSURes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABSetupItemCtxtSURes, s1apERABSetupItemCtxtSURes_p); ASN_SEQUENCE_ADD(&s1ap_E_RABSetupListCtxtSUResIEs->s1ap_E_RABSetupItemCtxtSURes, s1apERABSetupItemCtxtSURes_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7561,18 +6887,16 @@ int s1ap_decode_s1ap_e_rabtobeswitchedullist( S1ap_E_RABToBeSwitchedULItem_t *s1apERABToBeSwitchedULItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSwitchedULItem, (void**)&s1apERABToBeSwitchedULItem_p); if (tempDecoded < 0 || s1apERABToBeSwitchedULItem_p == NULL) { - d_error("Decoding of IE e_RABToBeSwitchedULItem for message S1ap_E_RABToBeSwitchedULList failed\n"); + d_error("Decoding of IE e_RABToBeSwitchedULItem for message S1ap_E_RABToBeSwitchedULList failed\n"); if (s1apERABToBeSwitchedULItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSwitchedULItem, s1apERABToBeSwitchedULItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSwitchedULItem, s1apERABToBeSwitchedULItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeSwitchedULListIEs->s1ap_E_RABToBeSwitchedULItem, s1apERABToBeSwitchedULItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7597,18 +6921,16 @@ int s1ap_decode_s1ap_bearers_subjecttostatustransfer_list( S1ap_Bearers_SubjectToStatusTransfer_Item_t *s1apBearersSubjectToStatusTransferItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_Bearers_SubjectToStatusTransfer_Item, (void**)&s1apBearersSubjectToStatusTransferItem_p); if (tempDecoded < 0 || s1apBearersSubjectToStatusTransferItem_p == NULL) { - d_error("Decoding of IE bearers_SubjectToStatusTransfer_Item for message S1ap_Bearers_SubjectToStatusTransfer_List failed\n"); + d_error("Decoding of IE bearers_SubjectToStatusTransfer_Item for message S1ap_Bearers_SubjectToStatusTransfer_List failed\n"); if (s1apBearersSubjectToStatusTransferItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_Bearers_SubjectToStatusTransfer_Item, s1apBearersSubjectToStatusTransferItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_Bearers_SubjectToStatusTransfer_Item, s1apBearersSubjectToStatusTransferItem_p); ASN_SEQUENCE_ADD(&s1ap_Bearers_SubjectToStatusTransfer_ListIEs->s1ap_Bearers_SubjectToStatusTransfer_Item, s1apBearersSubjectToStatusTransferItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7633,18 +6955,16 @@ int s1ap_decode_s1ap_e_rablist( S1ap_E_RABItem_t *s1apERABItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABItem, (void**)&s1apERABItem_p); if (tempDecoded < 0 || s1apERABItem_p == NULL) { - d_error("Decoding of IE e_RABItem for message S1ap_E_RABList failed\n"); + d_error("Decoding of IE e_RABItem for message S1ap_E_RABList failed\n"); if (s1apERABItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABItem, s1apERABItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABItem, s1apERABItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABListIEs->s1ap_E_RABItem, s1apERABItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7669,18 +6989,16 @@ int s1ap_decode_s1ap_tailist( S1ap_TAIItem_t *s1apTAIItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_TAIItem, (void**)&s1apTAIItem_p); if (tempDecoded < 0 || s1apTAIItem_p == NULL) { - d_error("Decoding of IE taiItem for message S1ap_TAIList failed\n"); + d_error("Decoding of IE taiItem for message S1ap_TAIList failed\n"); if (s1apTAIItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_TAIItem, s1apTAIItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_TAIItem, s1apTAIItem_p); ASN_SEQUENCE_ADD(&s1ap_TAIListIEs->s1ap_TAIItem, s1apTAIItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7705,18 +7023,16 @@ int s1ap_decode_s1ap_ue_associatedlogicals1_connectionlistres( S1ap_UE_associatedLogicalS1_ConnectionItem_t *s1apUEassociatedLogicalS1ConnectionItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, (void**)&s1apUEassociatedLogicalS1ConnectionItem_p); if (tempDecoded < 0 || s1apUEassociatedLogicalS1ConnectionItem_p == NULL) { - d_error("Decoding of IE uE_associatedLogicalS1_ConnectionItem for message S1ap_UE_associatedLogicalS1_ConnectionListRes failed\n"); + d_error("Decoding of IE uE_associatedLogicalS1_ConnectionItem for message S1ap_UE_associatedLogicalS1_ConnectionListRes failed\n"); if (s1apUEassociatedLogicalS1ConnectionItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, s1apUEassociatedLogicalS1ConnectionItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, s1apUEassociatedLogicalS1ConnectionItem_p); ASN_SEQUENCE_ADD(&s1ap_UE_associatedLogicalS1_ConnectionListResIEs->s1ap_UE_associatedLogicalS1_ConnectionItemRes, s1apUEassociatedLogicalS1ConnectionItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7741,18 +7057,16 @@ int s1ap_decode_s1ap_e_rabsetuplistbearersures( S1ap_E_RABSetupItemBearerSURes_t *s1apERABSetupItemBearerSURes_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABSetupItemBearerSURes, (void**)&s1apERABSetupItemBearerSURes_p); if (tempDecoded < 0 || s1apERABSetupItemBearerSURes_p == NULL) { - d_error("Decoding of IE e_RABSetupItemBearerSURes for message S1ap_E_RABSetupListBearerSURes failed\n"); + d_error("Decoding of IE e_RABSetupItemBearerSURes for message S1ap_E_RABSetupListBearerSURes failed\n"); if (s1apERABSetupItemBearerSURes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABSetupItemBearerSURes, s1apERABSetupItemBearerSURes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABSetupItemBearerSURes, s1apERABSetupItemBearerSURes_p); ASN_SEQUENCE_ADD(&s1ap_E_RABSetupListBearerSUResIEs->s1ap_E_RABSetupItemBearerSURes, s1apERABSetupItemBearerSURes_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7777,18 +7091,16 @@ int s1ap_decode_s1ap_e_rabmodifylistbearermodres( S1ap_E_RABModifyItemBearerModRes_t *s1apERABModifyItemBearerModRes_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABModifyItemBearerModRes, (void**)&s1apERABModifyItemBearerModRes_p); if (tempDecoded < 0 || s1apERABModifyItemBearerModRes_p == NULL) { - d_error("Decoding of IE e_RABModifyItemBearerModRes for message S1ap_E_RABModifyListBearerModRes failed\n"); + d_error("Decoding of IE e_RABModifyItemBearerModRes for message S1ap_E_RABModifyListBearerModRes failed\n"); if (s1apERABModifyItemBearerModRes_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABModifyItemBearerModRes, s1apERABModifyItemBearerModRes_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABModifyItemBearerModRes, s1apERABModifyItemBearerModRes_p); ASN_SEQUENCE_ADD(&s1ap_E_RABModifyListBearerModResIEs->s1ap_E_RABModifyItemBearerModRes, s1apERABModifyItemBearerModRes_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7813,18 +7125,16 @@ int s1ap_decode_s1ap_e_rabtobesetuplistctxtsureq( S1ap_E_RABToBeSetupItemCtxtSUReq_t *s1apERABToBeSetupItemCtxtSUReq_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABToBeSetupItemCtxtSUReq, (void**)&s1apERABToBeSetupItemCtxtSUReq_p); if (tempDecoded < 0 || s1apERABToBeSetupItemCtxtSUReq_p == NULL) { - d_error("Decoding of IE e_RABToBeSetupItemCtxtSUReq for message S1ap_E_RABToBeSetupListCtxtSUReq failed\n"); + d_error("Decoding of IE e_RABToBeSetupItemCtxtSUReq for message S1ap_E_RABToBeSetupListCtxtSUReq failed\n"); if (s1apERABToBeSetupItemCtxtSUReq_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABToBeSetupItemCtxtSUReq, s1apERABToBeSetupItemCtxtSUReq_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABToBeSetupItemCtxtSUReq, s1apERABToBeSetupItemCtxtSUReq_p); ASN_SEQUENCE_ADD(&s1ap_E_RABToBeSetupListCtxtSUReqIEs->s1ap_E_RABToBeSetupItemCtxtSUReq, s1apERABToBeSetupItemCtxtSUReq_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7849,18 +7159,16 @@ int s1ap_decode_s1ap_e_rabinformationlist( S1ap_E_RABInformationListItem_t *s1apERABInformationListItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_E_RABInformationListItem, (void**)&s1apERABInformationListItem_p); if (tempDecoded < 0 || s1apERABInformationListItem_p == NULL) { - d_error("Decoding of IE e_RABInformationListItem for message S1ap_E_RABInformationList failed\n"); + d_error("Decoding of IE e_RABInformationListItem for message S1ap_E_RABInformationList failed\n"); if (s1apERABInformationListItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_E_RABInformationListItem, s1apERABInformationListItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_E_RABInformationListItem, s1apERABInformationListItem_p); ASN_SEQUENCE_ADD(&s1ap_E_RABInformationListIEs->s1ap_E_RABInformationList, s1apERABInformationListItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } @@ -7885,18 +7193,16 @@ int s1ap_decode_s1ap_ue_associatedlogicals1_connectionlistresack( S1ap_UE_associatedLogicalS1_ConnectionItem_t *s1apUEassociatedLogicalS1ConnectionItem_p = NULL; tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, (void**)&s1apUEassociatedLogicalS1ConnectionItem_p); if (tempDecoded < 0 || s1apUEassociatedLogicalS1ConnectionItem_p == NULL) { - d_error("Decoding of IE uE_associatedLogicalS1_ConnectionItem for message S1ap_UE_associatedLogicalS1_ConnectionListResAck failed\n"); + d_error("Decoding of IE uE_associatedLogicalS1_ConnectionItem for message S1ap_UE_associatedLogicalS1_ConnectionListResAck failed\n"); if (s1apUEassociatedLogicalS1ConnectionItem_p) ASN_STRUCT_FREE(asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, s1apUEassociatedLogicalS1ConnectionItem_p); return -1; } decoded += tempDecoded; - if (asn1_xer_print) - xer_fprint(stdout, &asn_DEF_S1ap_UE_associatedLogicalS1_ConnectionItem, s1apUEassociatedLogicalS1ConnectionItem_p); ASN_SEQUENCE_ADD(&s1ap_UE_associatedLogicalS1_ConnectionListResAckIEs->s1ap_UE_associatedLogicalS1_ConnectionItemResAck, s1apUEassociatedLogicalS1ConnectionItem_p); } break; default: - d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); + d_error("Unknown protocol IE id (%d) for message s1ap_uplinkueassociatedlppatransport_ies\n", (int)ie_p->id); return -1; } } diff --git a/lib/asn/src/s1ap_ies_defs.h b/lib/asn/src/s1ap_ies_defs.h index 7831f5dbb..27678b928 100644 --- a/lib/asn/src/s1ap_ies_defs.h +++ b/lib/asn/src/s1ap_ies_defs.h @@ -30,7 +30,7 @@ /******************************************************************************* * This file had been created by asn1tostruct.py script v1.0.2 * Please do not modify this file but regenerate it via script. - * Created on: 2017-02-04 15:10:49.551397 by acetcom + * Created on: 2017-02-04 23:11:39.374543 by acetcom * from ['S1AP-PDU.asn'] ******************************************************************************/ #include "s1ap_common.h" diff --git a/lib/asn/src/s1ap_encoder.c b/lib/asn/src/s1ap_ies_encoder.c similarity index 99% rename from lib/asn/src/s1ap_encoder.c rename to lib/asn/src/s1ap_ies_encoder.c index 75bde2f4f..25f511301 100644 --- a/lib/asn/src/s1ap_encoder.c +++ b/lib/asn/src/s1ap_ies_encoder.c @@ -30,7 +30,7 @@ /******************************************************************************* * This file had been created by asn1tostruct.py script v1.0.2 * Please do not modify this file but regenerate it via script. - * Created on: 2017-02-04 15:10:49.579571 by acetcom + * Created on: 2017-02-04 23:11:39.421820 by acetcom * from ['S1AP-PDU.asn'] ******************************************************************************/ #include "s1ap_common.h" diff --git a/lib/asn/src/s1ap_xer_print.c b/lib/asn/src/s1ap_ies_xer_print.c similarity index 99% rename from lib/asn/src/s1ap_xer_print.c rename to lib/asn/src/s1ap_ies_xer_print.c index 0c6709dfe..e78c5a676 100644 --- a/lib/asn/src/s1ap_xer_print.c +++ b/lib/asn/src/s1ap_ies_xer_print.c @@ -30,7 +30,7 @@ /******************************************************************************* * This file had been created by asn1tostruct.py script v1.0.2 * Please do not modify this file but regenerate it via script. - * Created on: 2017-02-04 15:10:49.590143 by acetcom + * Created on: 2017-02-04 23:11:39.444144 by acetcom * from ['S1AP-PDU.asn'] ******************************************************************************/ #include diff --git a/lib/asn/src/s1ap_mme_decoder.c b/lib/asn/src/s1ap_mme_decoder.c index ba24991bc..7a2068f84 100644 --- a/lib/asn/src/s1ap_mme_decoder.c +++ b/lib/asn/src/s1ap_mme_decoder.c @@ -58,8 +58,8 @@ s1ap_mme_decode_initiating ( #endif d_assert(initiating_p != NULL, return -1, "Null param"); message_string = calloc (10000, sizeof (char)); -#if 0 s1ap_string_total_size = 0; +#if 0 message->procedureCode = initiating_p->procedureCode; message->criticality = initiating_p->criticality; #endif @@ -77,6 +77,7 @@ s1ap_mme_decode_initiating ( case S1ap_ProcedureCode_id_S1Setup: { ret = s1ap_decode_s1ap_s1setuprequesties (&message->msg.s1ap_S1SetupRequestIEs, &initiating_p->value); s1ap_xer_print_s1ap_s1setuprequest (s1ap_xer__print2sp, message_string, message); + printf("%s\n", message_string); #if 0 message_id = S1AP_S1_SETUP_LOG; #endif @@ -86,6 +87,7 @@ s1ap_mme_decode_initiating ( case S1ap_ProcedureCode_id_initialUEMessage: { ret = s1ap_decode_s1ap_initialuemessage_ies (&message->msg.s1ap_InitialUEMessage_IEs, &initiating_p->value); s1ap_xer_print_s1ap_initialuemessage (s1ap_xer__print2sp, message_string, message); + printf("%s\n", message_string); #if 0 message_id = S1AP_INITIAL_UE_MESSAGE_LOG; #endif @@ -152,8 +154,8 @@ s1ap_mme_decode_successfull_outcome ( #endif d_assert(successfullOutcome_p != NULL, return -1, "Null param"); message_string = calloc (10000, sizeof (char)); -#if 0 s1ap_string_total_size = 0; +#if 0 message->procedureCode = successfullOutcome_p->procedureCode; message->criticality = successfullOutcome_p->criticality; #endif @@ -162,6 +164,7 @@ s1ap_mme_decode_successfull_outcome ( case S1ap_ProcedureCode_id_InitialContextSetup: { ret = s1ap_decode_s1ap_initialcontextsetupresponseies (&message->msg.s1ap_InitialContextSetupResponseIEs, &successfullOutcome_p->value); s1ap_xer_print_s1ap_initialcontextsetupresponse (s1ap_xer__print2sp, message_string, message); + printf("%s\n", message_string); #if 0 message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG; #endif @@ -209,8 +212,8 @@ s1ap_mme_decode_unsuccessfull_outcome ( #endif d_assert(unSuccessfulOutcome_p != NULL, return -1, "Null param"); message_string = calloc (10000, sizeof (char)); -#if 0 s1ap_string_total_size = 0; +#if 0 message->procedureCode = unSuccessfulOutcome_p->procedureCode; message->criticality = unSuccessfulOutcome_p->criticality; #endif diff --git a/lib/asn/support/asn1tostruct.py b/lib/asn/support/asn1tostruct.py index eb2cb8a00..231448cb2 100644 --- a/lib/asn/support/asn1tostruct.py +++ b/lib/asn/support/asn1tostruct.py @@ -350,9 +350,9 @@ f.write("extern size_t %s_string_total_size;\n\n" % (fileprefix.lower())) f.write("#endif /* %s_IES_DEFS_H_ */\n\n" % (fileprefix.upper())) #Generate Decode functions -f = open(outdir + fileprefix + '_decoder.c', 'w') +f = open(outdir + fileprefix + '_ies_decoder.c', 'w') outputHeaderToFile(f, filename) -f.write("#define TRACE_MODULE s1ap_decoder\n#include \"%s_common.h\"\n#include \"%s_ies_defs.h\"\n#include \"core_debug.h\"\n\n" % (fileprefix, fileprefix)) +f.write("#define TRACE_MODULE ies_decoder\n#include \"%s_common.h\"\n#include \"%s_ies_defs.h\"\n#include \"core_debug.h\"\n\n" % (fileprefix, fileprefix)) for key in iesDefs: if key in ieofielist.values(): continue @@ -387,7 +387,7 @@ for key in iesDefs: if len(iesDefs[key]["ies"]) != 0: f.write(" assert(%s != NULL);\n\n" % (lowerFirstCamelWord(re.sub('-', '_', key)))) - f.write(" d_trace(3, \"Decoding message %s (%%s:%%d)\\n\", __FILE__, __LINE__);\n\n" % re.sub('-', '_', keyName)) + f.write(" d_trace(3, \"Decoding message %s (%%s:%%d)\\n\", __FILE__, __LINE__);\n\n" % re.sub('-', '_', keyName)) f.write(" ANY_to_type_aper(any_p, &asn_DEF_%s, (void**)&%s_p);\n\n" % (asn1cStruct, asn1cStructfirstlower)) f.write(" for (i = 0; i < %s_p->%slist.count; i++) {\n" % (asn1cStructfirstlower, iesaccess)) f.write(" %s_IE_t *ie_p;\n" % (fileprefix[0].upper() + fileprefix[1:])) @@ -412,17 +412,15 @@ for key in iesDefs: f.write(" %s->presenceMask |= %s_%s_PRESENT;\n" % (lowerFirstCamelWord(re.sub('-', '_', key)), keyupperunderscore, ieupperunderscore)) f.write(" tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_%s, (void**)&%s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) f.write(" if (tempDecoded < 0 || %s_p == NULL) {\n" % (lowerFirstCamelWord(ietypesubst))) - f.write(" d_error(\"Decoding of IE %s failed\\n\");\n" % (ienameunderscore)) + f.write(" d_error(\"Decoding of IE %s failed\\n\");\n" % (ienameunderscore)) f.write(" if (%s_p)\n" % (lowerFirstCamelWord(ietypesubst))) f.write(" ASN_STRUCT_FREE(asn_DEF_%s, %s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) f.write(" return -1;\n") f.write(" }\n") f.write(" decoded += tempDecoded;\n") - f.write(" if (asn1_xer_print)\n") - f.write(" xer_fprint(stdout, &asn_DEF_%s, %s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) if ie[2] in ieofielist.keys(): f.write(" if (%s_decode_%s(&%s->%s, %s_p) < 0) {\n" % (fileprefix, ietypeunderscore.lower(), lowerFirstCamelWord(re.sub('-', '_', key)), ienameunderscore, lowerFirstCamelWord(ietypesubst))) - f.write(" d_error(\"Decoding of encapsulated IE %s failed\\n\");\n" % (lowerFirstCamelWord(ietypesubst))) + f.write(" d_error(\"Decoding of encapsulated IE %s failed\\n\");\n" % (lowerFirstCamelWord(ietypesubst))) f.write(" ASN_STRUCT_FREE(asn_DEF_%s, %s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) f.write(" }\n") else: @@ -430,7 +428,7 @@ for key in iesDefs: #f.write(" ASN_STRUCT_FREE(asn_DEF_%s, %s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) f.write(" } break;\n") f.write(" default:\n") - f.write(" d_error(\"Unknown protocol IE id (%%d) for message %s\\n\", (int)ie_p->id);\n" % (re.sub('-', '_', structName.lower()))) + f.write(" d_error(\"Unknown protocol IE id (%%d) for message %s\\n\", (int)ie_p->id);\n" % (re.sub('-', '_', structName.lower()))) f.write(" return -1;\n") f.write(" }\n") f.write(" }\n") @@ -463,20 +461,18 @@ for key in iesDefs: f.write(" %s_t *%s_p = NULL;\n" % (re.sub('-', '_', ie[2]), lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_%s, (void**)&%s_p);\n" % (re.sub('-', '_', ie[2]), lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" if (tempDecoded < 0 || %s_p == NULL) {\n" % (lowerFirstCamelWord(re.sub('-', '', ie[2])))) - f.write(" d_error(\"Decoding of IE %s for message %s failed\\n\");\n" % (ienameunderscore, re.sub('-', '_', keyname))) + f.write(" d_error(\"Decoding of IE %s for message %s failed\\n\");\n" % (ienameunderscore, re.sub('-', '_', keyname))) f.write(" if (%s_p)\n" % (lowerFirstCamelWord(re.sub('-', '', ie[2])))) #f.write(" free(%s_p);\n" % (lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" ASN_STRUCT_FREE(asn_DEF_%s, %s_p);\n" % (re.sub('-', '_', ie[2]), lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" return -1;\n") f.write(" }\n") f.write(" decoded += tempDecoded;\n") - f.write(" if (asn1_xer_print)\n") - f.write(" xer_fprint(stdout, &asn_DEF_%s, %s_p);\n" % (re.sub('-', '_', ie[2]), lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" ASN_SEQUENCE_ADD(&%sIEs->%s, %s_p);\n" % (lowerFirstCamelWord(re.sub('-', '_', keyname)), re.sub('IEs', '', lowerFirstCamelWord(re.sub('-', '_', key))), lowerFirstCamelWord(re.sub('-', '', ie[2])))) f.write(" } break;\n") f.write(" default:\n") - f.write(" d_error(\"Unknown protocol IE id (%%d) for message %s\\n\", (int)ie_p->id);\n" % (re.sub('-', '_', structName.lower()))) + f.write(" d_error(\"Unknown protocol IE id (%%d) for message %s\\n\", (int)ie_p->id);\n" % (re.sub('-', '_', structName.lower()))) f.write(" return -1;\n") f.write(" }\n") f.write(" }\n") @@ -485,7 +481,7 @@ for key in iesDefs: #Generate IES Encode functions -f = open(outdir + fileprefix + '_encoder.c', 'w') +f = open(outdir + fileprefix + '_ies_encoder.c', 'w') outputHeaderToFile(f,filename) f.write("#include \"%s_common.h\"\n" % (fileprefix)) f.write("#include \"%s_ies_defs.h\"\n\n" % (fileprefix)) @@ -602,7 +598,7 @@ for (key, value) in iesDefs.items(): f.write("}\n\n") #Generate xer print functions -f = open(outdir + fileprefix + '_xer_print.c', 'w') +f = open(outdir + fileprefix + '_ies_xer_print.c', 'w') outputHeaderToFile(f, filename) f.write("#include \n") f.write("#include \n\n") diff --git a/lib/asn/test/s1ap_test.c b/lib/asn/test/s1ap_test.c index b8b8f2d96..c07a02ab5 100644 --- a/lib/asn/test/s1ap_test.c +++ b/lib/asn/test/s1ap_test.c @@ -19,6 +19,7 @@ static void s1ap_test1(abts_case *tc, void *data) s1ap_message message; int result; + memset(&message, 0, sizeof(s1ap_message)); result = s1ap_mme_decode_pdu(&message, (unsigned char*)buffer[0], 49); ABTS_INT_EQUAL(tc, 0, result); } @@ -32,6 +33,7 @@ static void s1ap_test2(abts_case *tc, void *data) s1ap_message message; int result; + memset(&message, 0, sizeof(s1ap_message)); result = s1ap_mme_decode_pdu(&message, (unsigned char*)buffer[0], 115); ABTS_INT_EQUAL(tc, 0, result); } @@ -45,6 +47,7 @@ static void s1ap_test3(abts_case *tc, void *data) s1ap_message message; int result; + memset(&message, 0, sizeof(s1ap_message)); result = s1ap_mme_decode_pdu(&message, (unsigned char*)buffer[0], 41); ABTS_INT_EQUAL(tc, 0, result); } @@ -54,6 +57,7 @@ abts_suite *test_s1ap(abts_suite *suite) suite = ADD_SUITE(suite) abts_run_test(suite, s1ap_test1, NULL); + abts_run_test(suite, s1ap_test2, NULL); abts_run_test(suite, s1ap_test3, NULL); return suite;