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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
b36a5b44
Commit
b36a5b44
authored
Sep 06, 2022
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix reject gtp-u incoming with no data
parent
d1a36c29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
32 deletions
+9
-32
openair3/ocp-gtpu/gtp_itf.cpp
openair3/ocp-gtpu/gtp_itf.cpp
+9
-32
No files found.
openair3/ocp-gtpu/gtp_itf.cpp
View file @
b36a5b44
...
...
@@ -1096,44 +1096,21 @@ static int Gtpv1uHandleGpdu(int h,
const
rb_id_t
rb_id
=
tunnel
->
second
.
incoming_rb_id
;
const
mui_t
mui
=
RLC_MUI_UNDEFINED
;
const
confirm_t
confirm
=
RLC_SDU_CONFIRM_NO
;
const
sdu_size_t
sdu_buffer_size
=
msgBufLen
-
offset
;
if
(
sdu_buffer_size
<
1
)
{
LOG_E
(
GTPU
,
"gtp-u received header is malformed, ignore gtp packet
\n
"
);
return
GTPNOK
;
}
const
sdu_size_t
sdu_buffer_size
=
msgBufLen
-
offset
;
unsigned
char
*
const
sdu_buffer
=
msgBuf
+
offset
;
const
pdcp_transmission_mode_t
mode
=
PDCP_TRANSMISSION_MODE_DATA
;
const
uint32_t
sourceL2Id
=
0
;
const
uint32_t
destinationL2Id
=
0
;
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
if
(
sdu_buffer_size
>
0
)
{
if
(
qfi
!=
-
1
&&
tunnel
->
second
.
callBackSDAP
)
{
if
(
!
tunnel
->
second
.
callBackSDAP
(
&
ctxt
,
srb_flag
,
rb_id
,
mui
,
confirm
,
sdu_buffer_size
,
sdu_buffer
,
mode
,
&
sourceL2Id
,
&
destinationL2Id
,
qfi
,
rqi
,
tunnel
->
second
.
pdusession_id
)
)
LOG_E
(
GTPU
,
"[%d] down layer refused incoming packet
\n
"
,
h
);
if
(
!
tunnel
->
second
.
callBackSDAP
(
&
ctxt
,
srb_flag
,
rb_id
,
mui
,
confirm
,
sdu_buffer_size
,
sdu_buffer
,
mode
,
&
sourceL2Id
,
&
destinationL2Id
,
qfi
,
rqi
,
tunnel
->
second
.
pdusession_id
))
LOG_E
(
GTPU
,
"[%d] down layer refused incoming packet
\n
"
,
h
);
}
else
{
if
(
!
tunnel
->
second
.
callBack
(
&
ctxt
,
srb_flag
,
rb_id
,
mui
,
confirm
,
sdu_buffer_size
,
sdu_buffer
,
mode
,
&
sourceL2Id
,
&
destinationL2Id
)
)
LOG_E
(
GTPU
,
"[%d] down layer refused incoming packet
\n
"
,
h
);
if
(
!
tunnel
->
second
.
callBack
(
&
ctxt
,
srb_flag
,
rb_id
,
mui
,
confirm
,
sdu_buffer_size
,
sdu_buffer
,
mode
,
&
sourceL2Id
,
&
destinationL2Id
))
LOG_E
(
GTPU
,
"[%d] down layer refused incoming packet
\n
"
,
h
);
}
}
if
(
NR_PDCP_PDU_SN
>
0
&&
NR_PDCP_PDU_SN
%
5
==
0
){
...
...
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