Skip to content
Snippets Groups Projects
Commit fc911464 authored by Chieh-Chun Chen's avatar Chieh-Chun Chen Committed by Kumar, Sunil Dr (Comp Sci & Elec Eng)
Browse files

Update E2 agent for FlexRIC dev 3a427b40

parent c55be9d6
Branches main
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ typedef struct { ...@@ -53,6 +53,7 @@ typedef struct {
memcpy(ba.buf, octet.buf, octet.size);\ memcpy(ba.buf, octet.buf, octet.size);\
ba.len = octet.size; ba.len = octet.size;
byte_array_t copy_byte_array(byte_array_t src); byte_array_t copy_byte_array(byte_array_t src);
void free_byte_array(byte_array_t ba); void free_byte_array(byte_array_t ba);
......
...@@ -109,8 +109,14 @@ typedef struct adapter_LabelInfoItem_t { ...@@ -109,8 +109,14 @@ typedef struct adapter_LabelInfoItem_t {
void free_label_info(adapter_LabelInfoItem_t *l); void free_label_info(adapter_LabelInfoItem_t *l);
void cp_label_info(adapter_LabelInfoItem_t *dst, adapter_LabelInfoItem_t const *src); void cp_label_info(adapter_LabelInfoItem_t *dst, adapter_LabelInfoItem_t const *src);
typedef enum {
KPM_V2_MEASUREMENT_TYPE_NAME = 1,
KPM_V2_MEASUREMENT_TYPE_ID = 2
} meas_type_e;
typedef struct MeasInfo_t { typedef struct MeasInfo_t {
enum {MeasurementType_NAME = 1, MeasurementType_ID=2} measType; meas_type_e meas_type;
adapter_MeasurementTypeName_t measName; adapter_MeasurementTypeName_t measName;
adapter_MeasurementTypeID_t measID; adapter_MeasurementTypeID_t measID;
adapter_LabelInfoItem_t *labelInfo; // list implemented as array having a maximum of 'maxnoofLabelInfo' items adapter_LabelInfoItem_t *labelInfo; // list implemented as array having a maximum of 'maxnoofLabelInfo' items
...@@ -124,6 +130,14 @@ typedef struct kpm_event_trigger_t { ...@@ -124,6 +130,14 @@ typedef struct kpm_event_trigger_t {
unsigned long ms; // reporting period in milliseconds unsigned long ms; // reporting period in milliseconds
} kpm_event_trigger_t; } kpm_event_trigger_t;
typedef enum {
KPMV2_CELL_ID_CHOICE_NOTHING = 0,
KPMV2_CELL_ID_CHOICE_NR_CGI,
KPMV2_CELL_ID_CHOICE_EUTRA_CGI
} cell_global_id_t;
/******************************************************* /*******************************************************
* SEC 2. RIC Action Definition as per $8.2.1.2 * SEC 2. RIC Action Definition as per $8.2.1.2
*******************************************************/ *******************************************************/
...@@ -153,12 +167,13 @@ typedef struct kpm_action_def_t ...@@ -153,12 +167,13 @@ typedef struct kpm_action_def_t
MeasInfo_t *MeasInfo; MeasInfo_t *MeasInfo;
// If cellGlobalIDtype == choice_NOTHING, the field 'cellGlobalID' in asn format will be NULL // If cellGlobalIDtype == choice_NOTHING, the field 'cellGlobalID' in asn format will be NULL
enum { choice_NOTHING, choice_nR_CGI, choice_eUTRA_CGI } cellGlobalIDtype; cell_global_id_t cell_global_id;
adapter_NRCellIdentity_t nRCellIdentity; adapter_NRCellIdentity_t nRCellIdentity;
adapter_PLMNIdentity_t pLMNIdentity; adapter_PLMNIdentity_t pLMNIdentity;
adapter_EUTRACellIdentity_t eUTRACellIdentity; adapter_EUTRACellIdentity_t eUTRACellIdentity;
/* /*
* XXX-extensions: below add all the info you might find in all the actions types . * XXX-extensions: below add all the info you might find in all the actions types .
* Still missing some fields for action_def_2, action_def_3, action_def_4, action_def_5. * Still missing some fields for action_def_2, action_def_3, action_def_4, action_def_5.
...@@ -279,4 +294,4 @@ void free_kpm_func_def(kpm_func_def_t* src); ...@@ -279,4 +294,4 @@ void free_kpm_func_def(kpm_func_def_t* src);
} }
#endif #endif
#endif #endif
\ No newline at end of file
...@@ -1042,7 +1042,7 @@ void read_kpm_sm(kpm_ind_data_t* data) ...@@ -1042,7 +1042,7 @@ void read_kpm_sm(kpm_ind_data_t* data)
assert(msg->MeasInfo != NULL && "Memory exhausted" ); assert(msg->MeasInfo != NULL && "Memory exhausted" );
MeasInfo_t* info = &msg->MeasInfo[0]; MeasInfo_t* info = &msg->MeasInfo[0];
info->measType = MeasurementType_NAME; info->meas_type = KPM_V2_MEASUREMENT_TYPE_NAME;
char* measName = "PrbDlUsage"; char* measName = "PrbDlUsage";
info->measName.len = strlen(measName); info->measName.len = strlen(measName);
info->measName.buf = malloc(strlen(measName)); info->measName.buf = malloc(strlen(measName));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment