X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/da8fbc65ef8785b3ae306e4863eb4ec6c7dfde13..735b44ac693f2a1eeb93336853c0b7d7bf3d66ba:/package/ppp/patches/330-retain_foreign_default_routes.patch diff --git a/package/ppp/patches/330-retain_foreign_default_routes.patch b/package/ppp/patches/330-retain_foreign_default_routes.patch index d60ccae50..dc6ed8d1f 100644 --- a/package/ppp/patches/330-retain_foreign_default_routes.patch +++ b/package/ppp/patches/330-retain_foreign_default_routes.patch @@ -1,10 +1,10 @@ --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c -@@ -1717,6 +1717,7 @@ int cifdefaultroute (int unit, u_int32_t +@@ -1743,6 +1743,7 @@ int cifdefaultroute (int unit, u_int32_t SIN_ADDR(rt.rt_genmask) = 0L; } -+ rt.rt_dev = ifname; ++ rt.rt_dev = ifname; rt.rt_flags = RTF_UP; if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { if (still_ppp()) {