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
650c6599
Commit
650c6599
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@5992
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
ae639178
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
+4
-1
openair-cn/UDP/udp_eNB_task.c
openair-cn/UDP/udp_eNB_task.c
+4
-2
No files found.
openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1u.c
View file @
650c6599
...
@@ -213,7 +213,10 @@ nwGtpv1uCreateAndSendMsg( NwGtpv1uStackT *thiz, NwU32T peerIp, NwU16T peerPort,
...
@@ -213,7 +213,10 @@ nwGtpv1uCreateAndSendMsg( NwGtpv1uStackT *thiz, NwU32T peerIp, NwU16T peerPort,
*
((
NwU32T
*
)
msgHdr
)
=
htonl
(
pMsg
->
teid
);
*
((
NwU32T
*
)
msgHdr
)
=
htonl
(
pMsg
->
teid
);
msgHdr
+=
4
;
msgHdr
+=
4
;
GTPU_DEBUG
(
"nwGtpv1uCreateAndSendMsg to teid %u length %d
\n
"
,
pMsg
->
teid
,
pMsg
->
msgLen
);
GTPU_DEBUG
(
"nwGtpv1uCreateAndSendMsg to teid %u length %d offset %d
\n
"
,
pMsg
->
teid
,
pMsg
->
msgLen
,
pMsg
->
msgBufOffset
);
if
(
pMsg
->
seqNumFlag
||
pMsg
->
extHdrFlag
||
pMsg
->
npduNumFlag
)
{
if
(
pMsg
->
seqNumFlag
||
pMsg
->
extHdrFlag
||
pMsg
->
npduNumFlag
)
{
*
((
NwU16T
*
)
msgHdr
)
=
(
pMsg
->
seqNumFlag
?
htons
(
pMsg
->
seqNum
)
:
0x0000
);
*
((
NwU16T
*
)
msgHdr
)
=
(
pMsg
->
seqNumFlag
?
htons
(
pMsg
->
seqNum
)
:
0x0000
);
...
...
openair-cn/UDP/udp_eNB_task.c
View file @
650c6599
...
@@ -334,7 +334,7 @@ void *udp_eNB_task(void *args_p)
...
@@ -334,7 +334,7 @@ void *udp_eNB_task(void *args_p)
ITTI_MSG_ORIGIN_ID
(
received_message_p
));
ITTI_MSG_ORIGIN_ID
(
received_message_p
));
pthread_mutex_unlock
(
&
udp_socket_list_mutex
);
pthread_mutex_unlock
(
&
udp_socket_list_mutex
);
if
(
udp_data_req_p
->
buffer
)
{
if
(
udp_data_req_p
->
buffer
)
{
free
(
udp_data_req_p
->
buffer
);
itti_free
(
ITTI_MSG_ORIGIN_ID
(
received_message_p
),
udp_data_req_p
->
buffer
);
}
}
goto
on_error
;
goto
on_error
;
}
}
...
@@ -349,12 +349,14 @@ void *udp_eNB_task(void *args_p)
...
@@ -349,12 +349,14 @@ void *udp_eNB_task(void *args_p)
bytes_written
=
sendto
(
bytes_written
=
sendto
(
udp_sd
,
udp_sd
,
udp_data_req_p
->
buffer
,
&
udp_data_req_p
->
buffer
[
udp_data_req_p
->
buffer_offset
]
,
udp_data_req_p
->
buffer_length
,
udp_data_req_p
->
buffer_length
,
0
,
0
,
(
struct
sockaddr
*
)
&
peer_addr
,
(
struct
sockaddr
*
)
&
peer_addr
,
sizeof
(
struct
sockaddr_in
));
sizeof
(
struct
sockaddr_in
));
itti_free
(
ITTI_MSG_ORIGIN_ID
(
received_message_p
),
udp_data_req_p
->
buffer
);
if
(
bytes_written
!=
udp_data_req_p
->
buffer_length
)
{
if
(
bytes_written
!=
udp_data_req_p
->
buffer_length
)
{
LOG_E
(
UDP_
,
"There was an error while writing to socket "
LOG_E
(
UDP_
,
"There was an error while writing to socket "
"(%d:%s)
\n
"
,
errno
,
strerror
(
errno
));
"(%d:%s)
\n
"
,
errno
,
strerror
(
errno
));
...
...
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