Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support "ip route get" as fallback on linux systems
this fixes gateway lookups on android, where neither `netstat -rn` nor `ip route show` display the gateway. $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 $ ip route show 10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.36 $ ip route get 8.8.8.8 8.8.8.8 via 10.0.1.1 dev eth0 src 10.0.1.36 uid 2000 cache
- Loading branch information
Showing
3 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters