Bug 973842 - Part 2: Support adding secondary routes (NetworkService). r=vchang

This commit is contained in:
Jessica Jong 2014-02-24 09:19:20 -05:00
parent b76073aeed
commit ecc4e88fb1

View File

@ -365,6 +365,30 @@ NetworkService.prototype = {
this.controlMessage(options, function() {});
},
addSecondaryRoute: function(ifname, route) {
if(DEBUG) debug("Going to add route to secondary table on " + ifname);
let options = {
cmd: "addSecondaryRoute",
ifname: ifname,
ip: route.ip,
prefix: route.prefix,
gateway: route.gateway
};
this.controlMessage(options, function() {});
},
removeSecondaryRoute: function(ifname, route) {
if(DEBUG) debug("Going to remove route from secondary table on " + ifname);
let options = {
cmd: "removeSecondaryRoute",
ifname: ifname,
ip: route.ip,
prefix: route.prefix,
gateway: route.gateway
};
this.controlMessage(options, function() {});
},
setNetworkProxy: function(network) {
try {
if (!network.httpProxyHost || network.httpProxyHost === "") {