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
d5a96b2c
Commit
d5a96b2c
authored
Dec 22, 2015
by
aikaterini.trilyraki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment address restore
parent
6975efd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
+9
-16
No files found.
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c
View file @
d5a96b2c
...
...
@@ -328,8 +328,6 @@ int eth_set_dev_conf_udp(openair0_device *device) {
exit
(
0
);
}
/* printf("[RRHbbb] mod_%d socket %d connected to BBU %s:%d\n", Mod_id, eth->sockfd[Mod_id], inet_ntoa(dest_addr[Mod_id].sin_addr), */
/* ntohs(dest_addr[Mod_id].sin_port)); */
return
0
;
}
...
...
@@ -347,10 +345,6 @@ int eth_get_dev_conf_udp(openair0_device *device) {
inet_ntop
(
AF_INET
,
&
(
local_addr
[
Mod_id
].
sin_addr
),
str
,
INET_ADDRSTRLEN
);
inet_ntop
(
AF_INET
,
&
(
dest_addr
[
Mod_id
].
sin_addr
),
str1
,
INET_ADDRSTRLEN
);
/* printf("[RRH] mod_%d socket %d connected to BBU %s:%d %s:%d\n", Mod_id, eth->sockfd[Mod_id], str1, */
/* ntohs(dest_addr[Mod_id].sin_port),str, */
/* ntohs(local_addr[Mod_id].sin_port)); */
/* RRH receives from BBU openair0_config_t */
if
(
recvfrom
(
eth
->
sockfd
[
Mod_id
],
msg
,
...
...
@@ -361,19 +355,18 @@ int eth_get_dev_conf_udp(openair0_device *device) {
perror
(
"ETHERNET: "
);
exit
(
0
);
}
memcpy
((
void
*
)
&
device
->
openair0_cfg
,
msg
,
msg_len
);
/* get remote ip address and port */
inet_ntop
(
AF_INET
,
&
(
dest_addr
[
Mod_id
].
sin_addr
),
str1
,
INET_ADDRSTRLEN
);
device
->
openair0_cfg
.
remote_port
=
ntohs
(
dest_addr
[
Mod_id
].
sin_port
);
device
->
openair0_cfg
.
remote_addr
=
str1
;
/* inet_ntop(AF_INET, &(dest_addr[Mod_id].sin_addr), str1, INET_ADDRSTRLEN); */
/* device->openair0_cfg.remote_port =ntohs(dest_addr[Mod_id].sin_port); */
/* device->openair0_cfg.remote_addr =str1; */
/*
restore local ip address and port
*/
inet_ntop
(
AF_INET
,
&
(
local_addr
[
Mod_id
].
sin_addr
),
str
,
INET_ADDRSTRLEN
);
device
->
openair0_cfg
.
my_port
=
ntohs
(
local_addr
[
Mod_id
].
sin_port
);
device
->
openair0_cfg
.
my_addr
=
str
;
/*
/\* restore local ip address and port *\/
*/
/* inet_ntop(AF_INET, &(local_addr[Mod_id].sin_addr), str, INET_ADDRSTRLEN); */
/* device->openair0_cfg.my_port =ntohs(local_addr[Mod_id].sin_port); */
/* device->openair0_cfg.my_addr =str; */
/*
printf("[RRH2] mod_%d socket %d connected to BBU %s:%d %s:%d\n", Mod_id, eth->sockfd[Mod_id],str1, device->openair0_cfg.remote_port, str, device->openair0_cfg.my_port);
*/
/*
printf("[RRH] mod_%d socket %d connected to BBU %s:%d %s:%d\n", Mod_id, eth->sockfd[Mod_id],str1, device->openair0_cfg.remote_port, str, device->openair0_cfg.my_port);
*/
return
0
;
}
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