commit | fbc40d2d9c22ef224003bb1a16e60c860fe8a38e | [log] [tgz] |
---|---|---|
author | mukesh agrawal <quiche@chromium.org> | Fri Jun 28 00:25:13 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Wed Jul 03 17:34:59 2013 -0700 |
tree | 60f1e80f7d79c7e714b1669bbb1784dc3cf619b0 | |
parent | 763df8647ed22caf6a160cedc3bb6f915a3a53dc [diff] |
shill: don't run dhcpcd and pppd simultaneously, for the same Cellular Some Cellular dongles expose both a network device (e.g. wwan0), and a serial interface for ppp. Despite the presence of the network device, they really want to be used as PPP devices. Normally, we run dhcpcd on every network device, and terminate the link if we are unable to acquire a DHCP lease. In the case of PPP dongles, that causes us to tear down a totally functional link after about 30 seconds. (The IP address is acquired using PPP IPCP, and applied to the ppp0, or similar, interface.) Avoid this problem, by a) not starting dhcpcd if pppd is already running for the Cellular device, and b) stopping dhcpcd for the Cellular device (if running), when we start pppd. BUG=chromium:252516 TEST=new unit tests Change-Id: I506413655ce44d36b3db0bd8e436340e5f5c20a9 Reviewed-on: https://gerrit.chromium.org/gerrit/60328 Reviewed-by: Ben Chan <benchan@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org> Tested-by: mukesh agrawal <quiche@chromium.org>