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
alex037yang
OpenXG-RAN
Commits
62423d0c
Commit
62423d0c
authored
Feb 08, 2016
by
Aikaterini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update
parent
b035bbb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
+0
-32
No files found.
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
View file @
62423d0c
...
...
@@ -177,38 +177,6 @@ int ethernet_tune(openair0_device *device, unsigned int option, int value) {
int
ret
=
0
;
int
i
=
0
;
if
(
1
==
0
)
{
/***************** get working interface name ***************************/
/* convert ascii ip address from config file to network binary format */
inet_aton
(
device
->
openair0_cfg
->
my_addr
,
&
ia
);
/* look for the interface used, we have its ip address get info on all our network interfaces*/
ids
=
if_nameindex
();
/* loop on these network interfaces */
for
(
i
=
0
;
ids
[
i
].
if_index
!=
0
;
i
++
)
{
/* skip unamed interfaces */
if
(
ids
[
i
].
if_name
==
NULL
)
continue
;
/* get ip address of current network interface */
strcpy
(
ifr
.
ifr_name
,
ids
[
i
].
if_name
);
if
(
-
1
==
ioctl
(
eth
->
sockfd
[
Mod_id
],
SIOCGIFADDR
,
&
ifr
))
{
printf
(
" Interface %i: %s isn't configured (no ip addr), skipped
\n
"
,
ids
[
i
].
if_index
,
ifr
.
ifr_name
);
continue
;
}
/* test if this is the interface to be used */
if
(
((
struct
sockaddr_in
*
)
&
ifr
.
ifr_addr
)
->
sin_addr
.
s_addr
!=
ia
.
s_addr
)
continue
;
/* store interface name */
if_name
=
ids
[
i
].
if_name
;
break
;
}
if_freenameindex
(
ids
);
if
(
if_name
==
NULL
)
{
printf
(
"Unable to find interface name for %s
\n
"
,
device
->
openair0_cfg
->
my_addr
);
return
-
1
;
}
eth
->
if_name
[
Mod_id
]
=
if_name
;
}
/****************** socket level options ************************/
switch
(
option
)
{
case
SND_BUF_SIZE
:
/* transmit socket buffer size */
...
...
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