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
spbro
OpenXG-RAN
Commits
4ae7d777
Commit
4ae7d777
authored
Jul 08, 2020
by
Andrew Burger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added logging for debugging sockets and changed connect to bind
parent
ddca335b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+2
-2
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+2
-2
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
4ae7d777
...
...
@@ -1171,7 +1171,7 @@ void ue_init_standalone_socket(const char *addr, int tx_port, int rx_port)
return
;
}
if
(
connect
(
sd
,
(
struct
sockaddr
*
)
&
server_address
,
addr_len
)
<
0
)
if
(
bind
(
sd
,
(
struct
sockaddr
*
)
&
server_address
,
addr_len
)
<
0
)
{
LOG_E
(
MAC
,
"Connection to standalone PNF failed: %s
\n
"
,
strerror
(
errno
));
close
(
sd
);
...
...
@@ -1362,7 +1362,7 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len
void
send_standalone_dummy
()
{
static
const
uint16_t
dummy
[]
=
{
0
,
0
};
LOG_E
(
MAC
,
"Dummy sent to Proxy, Size: %zu
\n
"
,
sizeof
(
dummy
));
//
LOG_E(MAC, "Dummy sent to Proxy, Size: %zu\n", sizeof(dummy));
if
(
send
(
ue_tx_sock_descriptor
,
dummy
,
sizeof
(
dummy
),
0
)
<
0
)
{
LOG_E
(
MAC
,
"send dummy to OAI UE failed: %s
\n
"
,
strerror
(
errno
));
...
...
targets/RT/USER/lte-ue.c
View file @
4ae7d777
...
...
@@ -1049,8 +1049,8 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg)
}
uint64_t
subframe_start
=
clock_usec
();
LOG_I
(
MAC
,
"subframe elapsed %"
PRIu64
"usec
\n
"
,
subframe_start
-
last_subframe_start
);
//
LOG_I(MAC, "subframe elapsed %" PRIu64 "usec\n",
//
subframe_start - last_subframe_start);
last_subframe_start
=
subframe_start
;
last_sfn_sf
=
sfn_sf
;
...
...
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