X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/da8fbc65ef8785b3ae306e4863eb4ec6c7dfde13..90d4f59c90febdcdd4599898f172ba5c63614ea3:/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()) {