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
wangjie
OpenXG-RAN
Commits
18b9a795
Commit
18b9a795
authored
Nov 24, 2020
by
masayuki.harada
Committed by
Robert Schmidt
Dec 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add handling of error case.
Fixed mme SCTP port.
parent
c9a200e8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
14 deletions
+10
-14
openair3/GTPV1-U/gtpv1u_eNB.c
openair3/GTPV1-U/gtpv1u_eNB.c
+1
-1
openair3/NAS/COMMON/EMM/MSG/AttachAccept.c
openair3/NAS/COMMON/EMM/MSG/AttachAccept.c
+0
-1
openair3/S1AP/s1ap_eNB.c
openair3/S1AP/s1ap_eNB.c
+5
-6
openair3/S1AP/s1ap_eNB_decoder.c
openair3/S1AP/s1ap_eNB_decoder.c
+0
-2
openair3/SCTP/sctp_eNB_task.c
openair3/SCTP/sctp_eNB_task.c
+4
-4
No files found.
openair3/GTPV1-U/gtpv1u_eNB.c
View file @
18b9a795
...
...
@@ -1211,7 +1211,7 @@ int gtpv1u_eNB_init(void) {
//gtpv1u_data_g.udp_data;
RC
.
gtpv1u_data_g
->
seq_num
=
0
;
RC
.
gtpv1u_data_g
->
restart_counter
=
0
;
RC
.
gtpv1u_data_g
->
enb_ip_address_for_S1u_S12_S4_up
=
0
;
/* Initializing GTPv1-U stack */
if
((
rc
=
nwGtpv1uInitialize
(
&
RC
.
gtpv1u_data_g
->
gtpv1u_stack
,
GTPU_STACK_ENB
))
!=
NW_GTPV1U_OK
)
{
LOG_E
(
GTPU
,
"Failed to setup nwGtpv1u stack %x
\n
"
,
rc
);
...
...
openair3/NAS/COMMON/EMM/MSG/AttachAccept.c
View file @
18b9a795
...
...
@@ -190,7 +190,6 @@ int decode_attach_accept(attach_accept_msg *attach_accept, uint8_t *buffer, uint
default:
errorCodeDecoder
=
TLV_DECODE_UNEXPECTED_IEI
;
LOG_TRACE
(
WARNING
,
"DECODE_UNEXPECTED_IEI %x (4 bits)"
,
ieiDecoded
);
AssertFatal
(
0
,
" "
);
return
TLV_DECODE_UNEXPECTED_IEI
;
}
}
...
...
openair3/S1AP/s1ap_eNB.c
View file @
18b9a795
...
...
@@ -96,7 +96,6 @@ uint32_t s1ap_generate_eNB_id(void) {
static
void
s1ap_eNB_register_mme
(
s1ap_eNB_instance_t
*
instance_p
,
net_ip_address_t
*
mme_ip_address
,
uint16_t
mme_port
,
net_ip_address_t
*
local_ip_addr
,
uint16_t
in_streams
,
uint16_t
out_streams
,
...
...
@@ -110,7 +109,7 @@ static void s1ap_eNB_register_mme(s1ap_eNB_instance_t *instance_p,
DevAssert
(
mme_ip_address
!=
NULL
);
message_p
=
itti_alloc_new_message
(
TASK_S1AP
,
SCTP_NEW_ASSOCIATION_REQ
);
sctp_new_association_req_p
=
&
message_p
->
ittiMsg
.
sctp_new_association_req
;
sctp_new_association_req_p
->
port
=
mme_port
;
sctp_new_association_req_p
->
port
=
S1AP_PORT_NUMBER
;
sctp_new_association_req_p
->
ppid
=
S1AP_SCTP_PPID
;
sctp_new_association_req_p
->
in_streams
=
in_streams
;
sctp_new_association_req_p
->
out_streams
=
out_streams
;
...
...
@@ -224,7 +223,6 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
/* Trying to connect to provided list of MME ip address */
for
(
index
=
0
;
index
<
s1ap_register_eNB
->
nb_mme
;
index
++
)
{
net_ip_address_t
*
mme_ip
=
&
s1ap_register_eNB
->
mme_ip_address
[
index
];
uint16_t
mme_port
=
s1ap_register_eNB
->
mme_port
[
index
];
struct
s1ap_eNB_mme_data_s
*
mme
=
NULL
;
RB_FOREACH
(
mme
,
s1ap_mme_map
,
&
new_instance
->
s1ap_mme_head
)
{
/* Compare whether IPv4 and IPv6 information is already present, in which
...
...
@@ -239,7 +237,6 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
continue
;
s1ap_eNB_register_mme
(
new_instance
,
mme_ip
,
mme_port
,
&
s1ap_register_eNB
->
enb_ip_address
,
s1ap_register_eNB
->
sctp_in_streams
,
s1ap_register_eNB
->
sctp_out_streams
,
...
...
@@ -411,8 +408,10 @@ void s1ap_eNB_handle_sctp_data_ind(sctp_data_ind_t *sctp_data_ind) {
mme_test_s1_notify_sctp_data_ind
(
sctp_data_ind
->
assoc_id
,
sctp_data_ind
->
stream
,
sctp_data_ind
->
buffer
,
sctp_data_ind
->
buffer_length
);
#else
s1ap_eNB_handle_message
(
sctp_data_ind
->
assoc_id
,
sctp_data_ind
->
stream
,
sctp_data_ind
->
buffer
,
sctp_data_ind
->
buffer_length
);
if
(
s1ap_eNB_handle_message
(
sctp_data_ind
->
assoc_id
,
sctp_data_ind
->
stream
,
sctp_data_ind
->
buffer
,
sctp_data_ind
->
buffer_length
)
==
-
1
)
{
S1AP_ERROR
(
"Failed to handle s1ap eNB message
\n
"
);
}
#endif
result
=
itti_free
(
TASK_UNKNOWN
,
sctp_data_ind
->
buffer
);
AssertFatal
(
result
==
EXIT_SUCCESS
,
"Failed to free memory (%d)!
\n
"
,
result
);
...
...
openair3/S1AP/s1ap_eNB_decoder.c
View file @
18b9a795
...
...
@@ -89,8 +89,6 @@ static int s1ap_eNB_decode_initiating_message(S1AP_S1AP_PDU_t *pdu) {
default:
S1AP_ERROR
(
"Unknown procedure ID (%d) for initiating message
\n
"
,
(
int
)
pdu
->
choice
.
initiatingMessage
.
procedureCode
);
AssertFatal
(
0
,
"Unknown procedure ID (%d) for initiating message
\n
"
,
(
int
)
pdu
->
choice
.
initiatingMessage
.
procedureCode
);
return
-
1
;
}
...
...
openair3/SCTP/sctp_eNB_task.c
View file @
18b9a795
...
...
@@ -270,7 +270,7 @@ sctp_handle_new_association_req_multi(
sctp_new_association_req_p
->
remote_address
.
ipv6_address
);
//close(sd);
//return;
exit
(
1
);
exit
_fun
(
"sctp_handle_new_association_req_multi fatal: inet_pton error"
);
}
SCTP_DEBUG
(
"Converted ipv6 address %*s to network type
\n
"
,
...
...
@@ -290,7 +290,7 @@ sctp_handle_new_association_req_multi(
sctp_new_association_req_p
->
remote_address
.
ipv4_address
);
//close(sd);
//return;
exit
(
1
);
exit
_fun
(
"sctp_handle_new_association_req_multi fatal: inet_pton error"
);
}
SCTP_DEBUG
(
"Converted ipv4 address %*s to network type
\n
"
,
...
...
@@ -329,7 +329,7 @@ sctp_handle_new_association_req_multi(
if
(
ns
==
-
1
)
{
perror
(
"sctp_peeloff"
);
printf
(
"sctp_peeloff: sd=%d assoc_id=%d
\n
"
,
sd
,
assoc_id
);
exit
(
1
);
exit
_fun
(
"sctp_handle_new_association_req_multi fatal: sctp_peeloff error"
);
}
sctp_cnx
=
calloc
(
1
,
sizeof
(
*
sctp_cnx
));
...
...
@@ -971,7 +971,7 @@ sctp_eNB_read_from_socket(
if
(
!
(
flags
&
MSG_EOR
))
{
SCTP_ERROR
(
"fatal: partial SCTP messages are not handled
\n
"
);
exit
(
1
);
exit
_fun
(
"fatal: partial SCTP messages are not handled"
);
}
if
(
flags
&
MSG_NOTIFICATION
)
{
...
...
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