am 49337b27: merge from open-source master

Merge commit '49337b27d9a90d7c3f703f618e7c6bfaffc2a96d' into kraken

* commit '49337b27d9a90d7c3f703f618e7c6bfaffc2a96d':
  Fix "route add default dev <iface>" behaviour
This commit is contained in:
The Android Open Source Project 2010-05-19 11:33:56 -07:00 committed by Android Git Automerger
commit 53a79a841b

View file

@ -61,7 +61,7 @@ int route_main(int argc, char *argv[])
if (!strcmp(argv[2], "default")) {
/* route add default dev wlan0 */
if (argc > 4 && !strcmp(argv[3], "dev")) {
rt.rt_flags = RTF_UP | RTF_HOST;
rt.rt_flags = RTF_UP;
rt.rt_dev = argv[4];
errno = 0;
goto apply;