lte/gateway/c/core/oai/tasks/amf/amf_smf_send.cpp
/***************************************************************************
**                                                                        **
** Name:    smf_dnn_ambr_select()                                         **
**                                                                        **
** Description: Copy dnn and ambr info in smf context                     **
**                                                                        **
**                                                                        **
***************************************************************************/


Copy dnn and ambr info in smf context
Copy dnn and ambr info in smf context
void smf_dnn_ambr_select(
    const std::shared_ptr<smf_context_t>& smf_ctx,
    ue_m5gmm_context_s* ue_context, int index_dnn) {
  smf_ctx->dnn.assign(
      reinterpret_cast<char*>(ue_context->amf_context.apn_config_profile
                                  .apn_configuration[index_dnn]
                                  .service_selection),
      strlen(ue_context->amf_context.apn_config_profile
                 .apn_configuration[index_dnn]
                 .service_selection));
  OAILOG_INFO(LOG_AMF_APP, "dnn selected %s\n", smf_ctx->dnn.c_str());
  memcpy(
      &smf_ctx->smf_ctx_ambr,
      &ue_context->amf_context.apn_config_profile.apn_configuration[index_dnn]
           .ambr,
      sizeof(ambr_t));
}
void smf_dnn_ambr_select ( const std :: shared_ptr < smf_context_t > & smf_ctx , ue_m5gmm_context_s * ue_context , int index_dnn ) { smf_ctx -> dnn . assign ( reinterpret_cast < char * > ( ue_context -> amf_context . apn_config_profile . apn_configuration [ index_dnn ] . service_selection ) , strlen ( ue_context -> amf_context . apn_config_profile . apn_configuration [ index_dnn ] . service_selection ) ) ; OAILOG_INFO ( LOG_AMF_APP , " \n " , smf_ctx -> dnn . c_str ( ) ) ; memcpy ( & smf_ctx -> smf_ctx_ambr , & ue_context -> amf_context . apn_config_profile . apn_configuration [ index_dnn ] . ambr , sizeof ( ambr_t ) ) ; }
Name:    smf_dnn_ambr_select()
Name : smf_dnn_ambr_select ()