Commit fa221e8c authored by marja's avatar marja Committed by Commit bot

Fix AndroidRndisForwarder.

It's trying to use a member variable which doesn't exist, and thus throwing an
exception every time it's used.

The brokenness was introduced by r290923 (
https://codereview.chromium.org/404803003/ ).

BUG=

Review URL: https://codereview.chromium.org/508923002

Cr-Commit-Position: refs/heads/master@{#292160}
parent 2bbece73
...@@ -150,10 +150,10 @@ class AndroidRndisForwarder(forwarders.Forwarder): ...@@ -150,10 +150,10 @@ class AndroidRndisForwarder(forwarders.Forwarder):
"""Override any routing policy that could prevent """Override any routing policy that could prevent
packets from reaching the rndis interface packets from reaching the rndis interface
""" """
policies = self._device.RunShellCommand('ip rule') policies = self._adb.RunShellCommand('ip rule')
if len(policies) > 1 and not ('lookup main' in policies[1]): if len(policies) > 1 and not ('lookup main' in policies[1]):
self._device.RunShellCommand('ip rule add prio 1 from all table main') self._adb.RunShellCommand('ip rule add prio 1 from all table main')
self._device.RunShellCommand('ip route flush cache') self._adb.RunShellCommand('ip route flush cache')
def _RestoreRoutingPolicy(self): def _RestoreRoutingPolicy(self):
policies = self._adb.RunShellCommand('ip rule') policies = self._adb.RunShellCommand('ip rule')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment