commit | 539ab0266ef93a3198f12b8be83a6312d35d6ba0 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Mon Feb 03 16:34:57 2014 -0800 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Wed Feb 05 19:48:31 2014 +0000 |
tree | ce141b8e8ef0608d2a326cd9f0316eb034c36c80 | |
parent | 26692bd03e56c3e71d2887e83e4cbbe71a64a191 [diff] |
shill: cellular: Obtain IPv4 configuration from bearer. This CL refactors the cellular code to obtain an IPv4 configuration from an active bearer object exposed by ModemManager. ModemManager may choose one of the IP configuration methods: static, DHCP, or PPP. If a static IP configuration is chosen, shill bypasses DHCP and uses the IP configuration provided by the bearer. If a PPP configuration method is choosen, this CL changes the code to bypass DHCP as well. BUG=chromium:233918 TEST=Tested the following: 1. Build and run unit tests. 2. Verify that shill obtains IP configuration properly under different bearer configurations: static, DHCP, and PPP. Change-Id: If3a04523455a7a524110eba94cfdee632c538518 Reviewed-on: https://chromium-review.googlesource.com/184762 Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org>