commit | d4ef677ad36ef34f59529af557adbe77b2c29c80 | [log] [tgz] |
---|---|---|
author | mukesh agrawal <quiche@chromium.org> | Tue Feb 21 16:28:04 2012 -0800 |
committer | Gerrit <chrome-bot@google.com> | Wed Feb 22 17:38:01 2012 -0800 |
tree | e9dbc6c6c1720c0501259ff59265fe841cdcc5ae | |
parent | 2c15d2c7ae814d95673ea48ec8f4eb582ef3652e [diff] |
shill: when updating the metric for a route, make sure to update RoutingTable's internal state (in addition to updating kernel state). It seems the kernel doesn't echo our routing changes back to us. So we need to explicitly update this ourselves. BUG=chromium-os:26529 TEST=updated unit test, manual manual testing: - set up device with WiFi config, and plug in Ethernet - "restart flimflam" five times, observe that every time, metric for route on Ethernet interface is 1. Change-Id: Ib82f8be58b81e316e893e7952345f86f5489cfca Reviewed-on: https://gerrit.chromium.org/gerrit/16405 Commit-Ready: mukesh agrawal <quiche@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Tested-by: mukesh agrawal <quiche@chromium.org>