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
eec53f12
Commit
eec53f12
authored
Nov 04, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5960
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
4d15a8f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
+11
-9
No files found.
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
View file @
eec53f12
...
...
@@ -510,20 +510,22 @@ nwGtpv1uProcessGpdu( NwGtpv1uStackT *thiz,
gpduLen
,
&
hMsg
);
payload_len
=
ntohs
(
msgHdr
->
msgLength
);
hdr_len
=
NW_GTPV1U_EPC_MIN_HEADER_SIZE
;
if
(
msgHdr
->
S
||
msgHdr
->
PN
||
msgHdr
->
E
)
{
hdr_len
=
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
;
payload_len
=
payload_len
-
(
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
-
NW_GTPV1U_EPC_MIN_HEADER_SIZE
);
}
AssertFatal
(
gpduLen
==
(
payload_len
+
hdr_len
),
"Mismatch gpduLen %d / hdr_len %d / payload_len %d"
,
gpduLen
,
hdr_len
,
payload_len
);
if
(
NW_GTPV1U_OK
==
rc
)
{
NwGtpv1uMsgT
*
pMsg
=
(
NwGtpv1uMsgT
*
)
hMsg
;
GTPU_DEBUG
(
"Received T-PDU over tunnel end-point '%x' of size %u from "
NW_IPV4_ADDR
"
\n
"
,
ntohl
(
msgHdr
->
teid
),
pMsg
->
msgLen
,
NW_IPV4_ADDR_FORMAT
((
peerIp
)));
payload_len
=
ntohs
(
msgHdr
->
msgLength
);
hdr_len
=
NW_GTPV1U_EPC_MIN_HEADER_SIZE
;
if
(
msgHdr
->
S
||
msgHdr
->
PN
||
msgHdr
->
E
)
{
hdr_len
=
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
;
payload_len
=
payload_len
-
(
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
-
NW_GTPV1U_EPC_MIN_HEADER_SIZE
);
}
AssertFatal
(
gpduLen
==
(
payload_len
+
hdr_len
),
"Mismatch gpduLen %d / hdr_len %d / payload_len %d"
,
gpduLen
,
hdr_len
,
payload_len
);
rc
=
nwGtpSessionSendMsgApiToUlpEntity
(
pTunnelEndPoint
,
pMsg
);
}
}
else
{
...
...
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