Closed Bug 997654 Opened 10 years ago Closed 10 years ago

B2G RIL: let each network handle its own host routes


(Firefox OS Graveyard :: RIL, defect)

Gonk (Firefox OS)
Not set



tracking-b2g backlog


(Reporter: jessica, Unassigned)



We want to remove all the host routes handling in NetworkManager, NetworkManager will only handle network policies and the default route for each network. Each network will need to take of their own host routes. Then, we can remove those network specific stuff in NetworkManager.
Blocks: 973543
Depends on: 939046
blocking-b2g: --- → backlog
The issue found in bug 1003247 will be a problem for this bug.
If we want to let each network handle its own host routes, and if the host routes need to be resolved first, we have to toggle the flag, but is now handled in NetworkManager.
The ideal case is that when NetworkManager sends "network-connection-state-changed" event, all the routes are properly set. But as mentioned in comment 1, if we want to let each network handle its own host routes, and if the host routes need to be resolved, it have to wait till NetworkManager toggles the flag.

One way to do this is to let NetworkManager and NetworkInterface exchange messages after is set and before "network-connection-state-changed" event is sent, this will ensure host routes are set properly by NetworkInterface before NetworkManager sends the "network-connection-state-changed" event. However, this adds some overhead and it is not that flexible. So per offline discussion, we'd still like NetworkManager to handle 'general' host routes, like dnses and http proxy. Other extra host routes will be handled by each component, e.g. MmsService now handles mmsc routing.

If everyone else is okay with this, we'd close this as WONTFIX.
Closed: 10 years ago
Resolution: --- → WONTFIX
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.