diff options
author | Bjoern Johansson <bjoernj@google.com> | 2018-09-06 15:29:22 -0700 |
---|---|---|
committer | Bjoern Johansson <bjoernj@google.com> | 2018-09-06 15:29:22 -0700 |
commit | f52fc12be67cfb72a44bf79a77112d80e01f3cf3 (patch) | |
tree | 8e4ab9a188a65781a5c566a2f0331f4a1959edcb /init.ranchu.rc | |
parent | 355b598179da0bb0908bee3568f8ad66c984c385 (diff) | |
download | android_device_generic_goldfish-f52fc12be67cfb72a44bf79a77112d80e01f3cf3.tar.gz android_device_generic_goldfish-f52fc12be67cfb72a44bf79a77112d80e01f3cf3.tar.bz2 android_device_generic_goldfish-f52fc12be67cfb72a44bf79a77112d80e01f3cf3.zip |
Make DHCP server assign interface-based addresses
Currently the DHCP server used in the router namespace assigns addresses
as configured on the command line. This is redundant information as all
the necessary information can be deduced from the current interface
address anyway.
Remove most of the command line options in favor of assigning addresses
from the same subnet that the interface is in and a gateway that is the
same address as the interface.
BUG: 111997081
Test: Run emulator and verify that radio and wifi networking works
Change-Id: I8b6adb76f7445b7650da8f2a59b020b4fef991ee
Diffstat (limited to 'init.ranchu.rc')
-rw-r--r-- | init.ranchu.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc index bf77184..5871766 100644 --- a/init.ranchu.rc +++ b/init.ranchu.rc @@ -70,7 +70,7 @@ service emu_hostapd /vendor/bin/execns -u wifi -g wifi router /vendor/bin/hostap group root wifi net_raw net_admin disabled -service dhcpserver /vendor/bin/execns router /vendor/bin/dhcpserver --range 192.168.232.2,192.168.239.254 --gateway 192.168.232.1 --netmask 255.255.248.0 --exclude-interface eth0 +service dhcpserver /vendor/bin/execns router /vendor/bin/dhcpserver --exclude-interface eth0 user root group root disabled |