Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
0fcbdb41
Commit
0fcbdb41
authored
14 years ago
by
Jean-Baptiste Queru
Committed by
Android Code Review
14 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Userland support for VM interconnection"
parents
c37ba1c9
2a743730
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
rootdir/etc/init.goldfish.sh
+10
-0
10 additions, 0 deletions
rootdir/etc/init.goldfish.sh
toolbox/Android.mk
+2
-2
2 additions, 2 deletions
toolbox/Android.mk
toolbox/route.c
+17
-7
17 additions, 7 deletions
toolbox/route.c
with
29 additions
and
9 deletions
rootdir/etc/init.goldfish.sh
+
10
−
0
View file @
0fcbdb41
...
...
@@ -45,3 +45,13 @@ esac
# this line doesn't really do anything useful. however without it the
# previous setprop doesn't seem to apply for some really odd reason
setprop ro.qemu.init.completed 1
# set up the second interface (for inter-emulator connections)
# if required
my_ip
=
`
getprop net.shared_net_ip
`
case
"
$my_ip
"
in
""
)
;;
*
)
ifconfig eth1
"
$my_ip
"
netmask 255.255.255.0 up
;;
esac
This diff is collapsed.
Click to expand it.
toolbox/Android.mk
+
2
−
2
View file @
0fcbdb41
This diff is collapsed.
Click to expand it.
toolbox/route.c
+
17
−
7
View file @
0fcbdb41
...
...
@@ -80,7 +80,8 @@ int route_main(int argc, char *argv[])
/* route add -net 192.168.1.2 netmask 255.255.255.0 gw 192.168.1.1 */
if
(
argc
>
7
&&
!
strcmp
(
argv
[
2
],
"-net"
)
&&
!
strcmp
(
argv
[
4
],
"netmask"
)
&&
!
strcmp
(
argv
[
6
],
"gw"
))
{
!
strcmp
(
argv
[
4
],
"netmask"
))
{
if
(
!
strcmp
(
argv
[
6
],
"gw"
))
{
rt
.
rt_flags
=
RTF_UP
|
RTF_GATEWAY
;
if
(
set_address
(
argv
[
3
],
&
rt
.
rt_dst
)
&&
set_address
(
argv
[
5
],
&
rt
.
rt_genmask
)
&&
...
...
@@ -88,6 +89,15 @@ int route_main(int argc, char *argv[])
errno
=
0
;
}
goto
apply
;
}
else
if
(
!
strcmp
(
argv
[
6
],
"dev"
))
{
rt
.
rt_flags
=
RTF_UP
;
rt
.
rt_dev
=
argv
[
7
];
if
(
set_address
(
argv
[
3
],
&
rt
.
rt_dst
)
&&
set_address
(
argv
[
5
],
&
rt
.
rt_genmask
))
{
errno
=
0
;
}
goto
apply
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment