Commit 65bd1475 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5301 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent a1683ba2
...@@ -540,19 +540,23 @@ boolean_t pdcp_data_ind( ...@@ -540,19 +540,23 @@ boolean_t pdcp_data_ind(
// SRB1/2: control-plane data // SRB1/2: control-plane data
if (srb_flagP){ if (srb_flagP){
#if defined(ENABLE_SECURITY) #if defined(ENABLE_SECURITY)
if (pdcp_p->security_activated == 1) { if (pdcp_p->security_activated == 1) {
if (enb_flagP == ENB_FLAG_NO) if (enb_flagP == ENB_FLAG_NO)
start_meas(&eNB_pdcp_stats[enb_mod_idP].validate_security); start_meas(&eNB_pdcp_stats[enb_mod_idP].validate_security);
else else
start_meas(&UE_pdcp_stats[ue_mod_idP].validate_security); start_meas(&UE_pdcp_stats[ue_mod_idP].validate_security);
pdcp_validate_security(pdcp_p, rb_idP, pdcp_header_len, pdcp_validate_security(pdcp_p,
sequence_number, sdu_buffer_pP->data, rb_idP,
sdu_buffer_sizeP - pdcp_tailer_len); pdcp_header_len,
if (enb_flagP == ENB_FLAG_NO) sequence_number,
stop_meas(&eNB_pdcp_stats[enb_mod_idP].validate_security); sdu_buffer_pP->data,
else sdu_buffer_sizeP - pdcp_tailer_len);
stop_meas(&UE_pdcp_stats[ue_mod_idP].validate_security);
if (enb_flagP == ENB_FLAG_NO)
stop_meas(&eNB_pdcp_stats[enb_mod_idP].validate_security);
else
stop_meas(&UE_pdcp_stats[ue_mod_idP].validate_security);
} }
#endif #endif
......
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