B2G/gecko/dom/system/gonk/net_worker.js
/**
 * Run DHCP and set default route and DNS servers for a given
 * network interface.
 */
Run DHCP and set default route and DNS servers for a given
network interface.
Run DHCP and set default route and DNS servers for a given network interface .
function runDHCPAndSetDefaultRouteAndDNS(options) {
  let dhcp = libnetutils.dhcp_do_request(options.ifname);
  dhcp.ifname = options.ifname;
  dhcp.oldIfname = options.oldIfname;
  setDefaultRouteAndDNS(dhcp);
}
function runDHCPAndSetDefaultRouteAndDNS ( options ) { let dhcp = libnetutils . dhcp_do_request ( options . ifname ) ; dhcp . ifname = options . ifname ; dhcp . oldIfname = options . oldIfname ; setDefaultRouteAndDNS ( dhcp ) ; }
Run DHCP and set default route and DNS servers for a given
 network interface.
Run DHCP and set default route and DNS servers for a given network interface .
//TODO this could be race-y... by the time we've finished the DHCP request // and are now fudging with the routes, another network interface may have // come online that's preferred...