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
zzha zzha
OpenXG-RAN
Commits
9514cbee
Commit
9514cbee
authored
Nov 06, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5994
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
fdde7e1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
openair-cn/GTPV1-U/gtpv1u_eNB.c
openair-cn/GTPV1-U/gtpv1u_eNB.c
+1
-0
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
+1
-1
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c
+8
-5
No files found.
openair-cn/GTPV1-U/gtpv1u_eNB.c
View file @
9514cbee
...
...
@@ -200,6 +200,7 @@ NwGtpv1uRcT gtpv1u_eNB_send_udp_msg(
message_p
=
itti_alloc_new_message
(
TASK_GTPV1_U
,
UDP_DATA_REQ
);
if
(
message_p
)
{
LOG_D
(
GTPU
,
"Sending UDP_DATA_REQ length %u offset %u"
,
buffer_len
,
buffer_offset
);
udp_data_req_p
=
&
message_p
->
ittiMsg
.
udp_data_req
;
udp_data_req_p
->
peer_address
=
peerIpAddr
;
udp_data_req_p
->
peer_port
=
peerPort
;
...
...
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
View file @
9514cbee
...
...
@@ -231,7 +231,7 @@ nwGtpv1uCreateAndSendMsg( NwGtpv1uStackT *thiz, NwU32T peerIp, NwU16T peerPort,
rc
=
thiz
->
udp
.
udpDataReqCallback
(
thiz
->
udp
.
hUdp
,
pMsg
->
msgBuf
,
pMsg
->
msgLen
,
pMsg
->
msg
Buf
Len
,
pMsg
->
msgBufOffset
,
peerIp
,
peerPort
);
...
...
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c
View file @
9514cbee
...
...
@@ -143,6 +143,9 @@ nwGtpv1uGpduMsgNew( NW_IN NwGtpv1uStackHandleT hGtpuStackHandle,
pMsg
->
msgBuf
=
tpdu
;
pMsg
->
msgBufLen
=
tpduLength
+
msgExtraLen
+
NW_GTPV1U_EPC_MIN_HEADER_SIZE
;
pMsg
->
msgBufOffset
=
tpduOffset
-
(
msgExtraLen
+
NW_GTPV1U_EPC_MIN_HEADER_SIZE
);
LOG_E
(
GTPU
,
"MSG length %u, offset %u -> length %u offset %u
\n
"
,
tpduLength
,
tpduOffset
,
pMsg
->
msgBufLen
,
pMsg
->
msgBufOffset
);
// Version field: This field is used to determine the version of the GTP-U protocol.
// The version number shall be set to '1'.
...
...
@@ -178,11 +181,11 @@ nwGtpv1uGpduMsgNew( NW_IN NwGtpv1uStackHandleT hGtpuStackHandle,
// mandatory part of the GTP header (that is the first 8 octets).
// The Sequence Number, the N-PDU Number or any Extension headers shall be considered to be part of the payload,
// i.e. included in the length count.
header_len
=
((
pMsg
->
seqNumFlag
||
pMsg
->
npduNumFlag
||
pMsg
->
extHdrFlag
)
?
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
:
NW_GTPV1U_EPC_MIN_HEADER_SIZE
);
pMsg
->
msgLen
=
((
pMsg
->
seqNumFlag
||
pMsg
->
npduNumFlag
||
pMsg
->
extHdrFlag
)
?
(
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE
-
NW_GTPV1U_EPC_MIN_HEADER_SIZE
)
+
tpduLength
:
tpduLength
);
//
header_len = ((pMsg->seqNumFlag || pMsg->npduNumFlag || pMsg->extHdrFlag ) ?
//
NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE : NW_GTPV1U_EPC_MIN_HEADER_SIZE);
//
pMsg->msgLen = ((pMsg->seqNumFlag || pMsg->npduNumFlag
//
|| pMsg->extHdrFlag ) ?
//
(NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE - NW_GTPV1U_EPC_MIN_HEADER_SIZE) + tpduLength : tpduLength);
// Tunnel Endpoint Identifier (TEID): This field unambiguously identifies a tunnel endpoint in the receiving
// GTP-U protocol entity. The receiving end side of a GTP tunnel locally assigns the TEID value the transmitting
...
...
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