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
Michael Black
OpenXG-RAN
Commits
2d445364
Commit
2d445364
authored
Dec 15, 2021
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct how gtp-u extension header is parsed
parent
12792eec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
openair2/F1AP/f1ap_cu_ue_context_management.c
openair2/F1AP/f1ap_cu_ue_context_management.c
+1
-1
openair3/ocp-gtpu/gtp_itf.cpp
openair3/ocp-gtpu/gtp_itf.cpp
+19
-2
No files found.
openair2/F1AP/f1ap_cu_ue_context_management.c
View file @
2d445364
...
...
@@ -144,7 +144,7 @@ int CU_send_UE_CONTEXT_SETUP_REQUEST(instance_t instance,
if
(
f1ap_ue_context_setup_req
->
cu_to_du_rrc_information
->
uE_CapabilityRAT_ContainerList
!=
NULL
){
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
uE_CapabilityRAT_ContainerList
,
uE_CapabilityRAT_ContainerList
);
OCTET_STRING_fromBuf
(
uE_CapabilityRAT_ContainerList
,
(
const
char
*
)
f1ap_ue_context_setup_req
->
cu_to_du_rrc_information
->
uE_CapabilityRAT_ContainerList
,
f1ap_ue_context_setup_req
->
cu_to_du_rrc_information
->
uE_CapabilityRAT_ContainerList_length
)
;
f1ap_ue_context_setup_req
->
cu_to_du_rrc_information
->
uE_CapabilityRAT_ContainerList_length
);
}
/* optional */
/* 6.3 measConfig */
...
...
openair3/ocp-gtpu/gtp_itf.cpp
View file @
2d445364
...
...
@@ -758,10 +758,27 @@ static int Gtpv1uHandleGpdu(int h,
return
GTPNOK
;
}
int
offset
=
8
;
/*
int offset=8;
if( msgHdr->E || msgHdr->S ||msgHdr->PN)
offset
+=
8
;
offset+=8;*/
//Minimum length of GTP-U header if non of the optional fields are present
int
offset
=
sizeof
(
Gtpv1uMsgHeaderT
);
//Consider additional length for GTP-U header if at least one of the optional fields is present
if
(
msgHdr
->
E
||
msgHdr
->
S
||
msgHdr
->
PN
)
offset
+=
4
;
//Consider the length of 1 or more extension headers that can be present in the GTP-U PDU
if
(
msgHdr
->
E
)
{
while
(
msgBuf
[
offset
]
!=
0
)
{
LOG_D
(
GTPU
,
"Extension header length in multiple of 4 bytes is: %d
\n
"
,
msgBuf
[
offset
]);
offset
+=
msgBuf
[
offset
]
*
4
-
1
;
}
offset
++
;
}
// This context is not good for gtp
// frame, ... has no meaning
...
...
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