Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
31fe819c
Commit
31fe819c
authored
Sep 23, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extra logging
parent
f2c5c0f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
29 deletions
+42
-29
openair2/LAYER2/PDCP_v10.1.0/pdcp_security.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_security.c
+2
-2
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
+1
-1
openair3/S1AP/s1ap_eNB_encoder.c
openair3/S1AP/s1ap_eNB_encoder.c
+39
-26
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp_security.c
View file @
31fe819c
...
@@ -235,8 +235,8 @@ pdcp_validate_security(
...
@@ -235,8 +235,8 @@ pdcp_validate_security(
" Security: failed MAC-I Algo %X UE %"
PRIx16
" "
,
" Security: failed MAC-I Algo %X UE %"
PRIx16
" "
,
pdcp_pP
->
integrityProtAlgorithm
,
pdcp_pP
->
integrityProtAlgorithm
,
ctxt_pP
->
rnti
);
ctxt_pP
->
rnti
);
LOG_E
(
PDCP
,
"[OSA][RB %d] %s failed to validate MAC-I of incoming PDU
\n
"
,
LOG_E
(
PDCP
,
"[OSA][RB %d] %s failed to validate MAC-I
(key %llx)
of incoming PDU
\n
"
,
rb_id
,
(
pdcp_pP
->
is_ue
!=
0
)
?
"UE"
:
"eNB"
);
rb_id
,
(
pdcp_pP
->
is_ue
!=
0
)
?
"UE"
:
"eNB"
,((
long
long
unsigned
int
*
)
decrypt_params
.
key
)[
0
]
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_VALIDATE_SECURITY
,
VCD_FUNCTION_OUT
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_VALIDATE_SECURITY
,
VCD_FUNCTION_OUT
);
return
-
1
;
return
-
1
;
}
}
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c
View file @
31fe819c
...
@@ -188,7 +188,7 @@ boolean_t pdcp_is_rx_seq_number_valid(uint16_t seq_num, pdcp_t* pdcp_entity,srb_
...
@@ -188,7 +188,7 @@ boolean_t pdcp_is_rx_seq_number_valid(uint16_t seq_num, pdcp_t* pdcp_entity,srb_
pdcp_entity
->
next_pdcp_rx_sn_before_integrity
=
pdcp_entity
->
next_pdcp_rx_sn
;
pdcp_entity
->
next_pdcp_rx_sn_before_integrity
=
pdcp_entity
->
next_pdcp_rx_sn
;
if
(
seq_num
!=
pdcp_entity
->
next_pdcp_rx_sn
)
{
if
(
seq_num
!=
pdcp_entity
->
next_pdcp_rx_sn
)
{
LOG_D
(
PDCP
,
"Re-adjusting the sequence number to %d
\n
"
,
seq_num
);
LOG_D
(
PDCP
,
"Re-adjusting the sequence number to %d
from %d
\n
"
,
seq_num
,
pdcp_entity
->
next_pdcp_rx_sn
);
}
}
//set Next_PDCP_RX_SN to the received PDCP SN +1 ;
//set Next_PDCP_RX_SN to the received PDCP SN +1 ;
...
...
openair3/S1AP/s1ap_eNB_encoder.c
View file @
31fe819c
...
@@ -176,26 +176,33 @@ int s1ap_eNB_encode_successfull_outcome(S1AP_S1AP_PDU_t *pdu,
...
@@ -176,26 +176,33 @@ int s1ap_eNB_encode_successfull_outcome(S1AP_S1AP_PDU_t *pdu,
switch
(
pdu
->
choice
.
successfulOutcome
.
procedureCode
)
{
switch
(
pdu
->
choice
.
successfulOutcome
.
procedureCode
)
{
case
S1AP_ProcedureCode_id_InitialContextSetup
:
case
S1AP_ProcedureCode_id_InitialContextSetup
:
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
message_id
=
S1AP_INITIAL_CONTEXT_SETUP_LOG
;
if
(
res
.
result
.
encoded
<=
0
)
LOG_E
(
RRC
,
"S1AP_ProcedureCode_id_InitialContextSetup: res.result.encoded<=0
\n
"
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
else
{
message_p
->
ittiMsg
.
s1ap_initial_context_setup_log
.
size
=
res
.
result
.
encoded
;
message_id
=
S1AP_INITIAL_CONTEXT_SETUP_LOG
;
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_initial_context_setup_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
message_p
->
ittiMsg
.
s1ap_initial_context_setup_log
.
size
=
res
.
result
.
encoded
;
free
(
res
.
buffer
);
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_initial_context_setup_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
free
(
res
.
buffer
);
}
break
;
break
;
case
S1AP_ProcedureCode_id_UEContextRelease
:
case
S1AP_ProcedureCode_id_UEContextRelease
:
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
message_id
=
S1AP_UE_CONTEXT_RELEASE_COMPLETE_LOG
;
if
(
res
.
result
.
encoded
<=
0
)
LOG_E
(
RRC
,
"S1AP_ProcedureCode_id_UEContextRelease: res.result.encoded<=0
\n
"
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
else
{
message_p
->
ittiMsg
.
s1ap_ue_context_release_complete_log
.
size
=
res
.
result
.
encoded
;
message_id
=
S1AP_UE_CONTEXT_RELEASE_COMPLETE_LOG
;
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_ue_context_release_complete_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
message_p
->
ittiMsg
.
s1ap_ue_context_release_complete_log
.
size
=
res
.
result
.
encoded
;
free
(
res
.
buffer
);
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_ue_context_release_complete_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
free
(
res
.
buffer
);
}
break
;
break
;
case
S1AP_ProcedureCode_id_E_RABSetup
:
case
S1AP_ProcedureCode_id_E_RABSetup
:
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
AssertFatal
(
res
.
result
.
encoded
>
0
,
"res.result.encoded<=0
\n
"
);
message_id
=
S1AP_E_RAB_SETUP_RESPONSE_LOG
;
message_id
=
S1AP_E_RAB_SETUP_RESPONSE_LOG
;
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
message_p
->
ittiMsg
.
s1ap_e_rab_setup_response_log
.
size
=
res
.
result
.
encoded
;
message_p
->
ittiMsg
.
s1ap_e_rab_setup_response_log
.
size
=
res
.
result
.
encoded
;
...
@@ -207,24 +214,30 @@ int s1ap_eNB_encode_successfull_outcome(S1AP_S1AP_PDU_t *pdu,
...
@@ -207,24 +214,30 @@ int s1ap_eNB_encode_successfull_outcome(S1AP_S1AP_PDU_t *pdu,
case
S1AP_ProcedureCode_id_E_RABModify
:
case
S1AP_ProcedureCode_id_E_RABModify
:
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
message_id
=
S1AP_E_RAB_MODIFY_RESPONSE_LOG
;
if
(
res
.
result
.
encoded
<=
0
)
LOG_E
(
RRC
,
"S1AP_ProcedureCode_id_E_RABModify: res.result.encoded<=0
\n
"
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
else
{
message_p
->
ittiMsg
.
s1ap_e_rab_modify_response_log
.
size
=
res
.
result
.
encoded
;
message_id
=
S1AP_E_RAB_MODIFY_RESPONSE_LOG
;
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_e_rab_modify_response_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
message_p
->
ittiMsg
.
s1ap_e_rab_modify_response_log
.
size
=
res
.
result
.
encoded
;
free
(
res
.
buffer
);
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_e_rab_modify_response_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
S1AP_INFO
(
"E_RABModify successful message
\n
"
);
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
free
(
res
.
buffer
);
S1AP_INFO
(
"E_RABModify successful message
\n
"
);
}
break
;
break
;
case
S1AP_ProcedureCode_id_E_RABRelease
:
case
S1AP_ProcedureCode_id_E_RABRelease
:
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_CANONICAL_XER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
message_id
=
S1AP_E_RAB_RELEASE_RESPONSE_LOG
;
if
(
res
.
result
.
encoded
<=
0
)
LOG_E
(
RRC
,
"S1AP_ProcedureCode_id_E_RABRelease: res.result.encoded<=0
\n
"
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
else
{
message_p
->
ittiMsg
.
s1ap_e_rab_release_response_log
.
size
=
res
.
result
.
encoded
;
message_id
=
S1AP_E_RAB_RELEASE_RESPONSE_LOG
;
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_e_rab_release_response_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
message_p
=
itti_alloc_new_message_sized
(
TASK_S1AP
,
message_id
,
res
.
result
.
encoded
+
sizeof
(
IttiMsgText
));
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
message_p
->
ittiMsg
.
s1ap_e_rab_release_response_log
.
size
=
res
.
result
.
encoded
;
free
(
res
.
buffer
);
memcpy
(
&
message_p
->
ittiMsg
.
s1ap_e_rab_release_response_log
.
text
,
res
.
buffer
,
res
.
result
.
encoded
);
S1AP_INFO
(
"E_RAB Release successful message
\n
"
);
itti_send_msg_to_task
(
TASK_UNKNOWN
,
INSTANCE_DEFAULT
,
message_p
);
free
(
res
.
buffer
);
S1AP_INFO
(
"E_RAB Release successful message
\n
"
);
}
break
;
break
;
default:
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment