Commit 75b05571 authored by Robert Schmidt's avatar Robert Schmidt

Setup Request: store in E1 only for CU-UP

parent b26dcc1e
...@@ -332,7 +332,7 @@ int e1apCUUP_handle_SETUP_RESPONSE(e1ap_upcp_inst_t *inst, const E1AP_E1AP_PDU_t ...@@ -332,7 +332,7 @@ int e1apCUUP_handle_SETUP_RESPONSE(e1ap_upcp_inst_t *inst, const E1AP_E1AP_PDU_t
/* transac_id */ /* transac_id */
long transaction_id; long transaction_id;
long old_transaction_id = inst->setupReq.transac_id; long old_transaction_id = inst->cuup.setupReq.transac_id;
F1AP_FIND_PROTOCOLIE_BY_ID(E1AP_GNB_CU_UP_E1SetupResponseIEs_t, ie, in, F1AP_FIND_PROTOCOLIE_BY_ID(E1AP_GNB_CU_UP_E1SetupResponseIEs_t, ie, in,
E1AP_ProtocolIE_ID_id_TransactionID, true); E1AP_ProtocolIE_ID_id_TransactionID, true);
transaction_id = ie->value.choice.TransactionID; transaction_id = ie->value.choice.TransactionID;
...@@ -1558,7 +1558,7 @@ static void e1_task_handle_sctp_association_resp(E1_t type, instance_t instance, ...@@ -1558,7 +1558,7 @@ static void e1_task_handle_sctp_association_resp(E1_t type, instance_t instance,
extern instance_t CUuniqInstance; extern instance_t CUuniqInstance;
CUuniqInstance = getCxtE1(instance)->gtpInstF1U; CUuniqInstance = getCxtE1(instance)->gtpInstF1U;
cuup_init_n3(instance); cuup_init_n3(instance);
e1apCUUP_send_SETUP_REQUEST(inst->assoc_id, &inst->setupReq); e1apCUUP_send_SETUP_REQUEST(inst->assoc_id, &inst->cuup.setupReq);
} }
} }
......
...@@ -46,8 +46,10 @@ void createE1inst(E1_t type, instance_t instance, e1ap_net_config_t *nc, e1ap_se ...@@ -46,8 +46,10 @@ void createE1inst(E1_t type, instance_t instance, e1ap_net_config_t *nc, e1ap_se
e1ap_inst[instance]->assoc_id = -1; e1ap_inst[instance]->assoc_id = -1;
if (nc) if (nc)
memcpy(&e1ap_inst[instance]->net_config, nc, sizeof(*nc)); memcpy(&e1ap_inst[instance]->net_config, nc, sizeof(*nc));
if (req) if (req) {
memcpy(&e1ap_inst[instance]->setupReq, req, sizeof(*req)); AssertFatal(type == UPtype, "E1 setup request only to be stored for CU-UP\n");
memcpy(&e1ap_inst[instance]->cuup.setupReq, req, sizeof(*req));
}
e1ap_inst[instance]->gtpInstN3 = -1; e1ap_inst[instance]->gtpInstN3 = -1;
e1ap_inst[instance]->gtpInstF1U = -1; e1ap_inst[instance]->gtpInstF1U = -1;
} }
......
...@@ -33,9 +33,11 @@ typedef struct e1ap_upcp_inst_s { ...@@ -33,9 +33,11 @@ typedef struct e1ap_upcp_inst_s {
E1_t type; E1_t type;
enum sctp_state_e sockState; enum sctp_state_e sockState;
sctp_assoc_t assoc_id; sctp_assoc_t assoc_id;
struct {
e1ap_setup_req_t setupReq;
} cuup;
instance_t gtpInstN3; instance_t gtpInstN3;
instance_t gtpInstF1U; instance_t gtpInstF1U;
e1ap_setup_req_t setupReq;
e1ap_net_config_t net_config; e1ap_net_config_t net_config;
} e1ap_upcp_inst_t; } e1ap_upcp_inst_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment