diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-04 21:47:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-04 21:47:29 +0000 |
commit | 815b18051b29d4c65a4dd216e1a0fb21eed93faf (patch) | |
tree | 6d479f5c33bf69b56d4205cf152b97c3f45dc1ab /package/ppp/patches/330-retain_foreign_default_routes.patch | |
parent | e8fe990549525eef4174c43fdb8c994fac7ef1ba (diff) | |
download | master-31e0f0ae-815b18051b29d4c65a4dd216e1a0fb21eed93faf.tar.gz master-31e0f0ae-815b18051b29d4c65a4dd216e1a0fb21eed93faf.tar.bz2 master-31e0f0ae-815b18051b29d4c65a4dd216e1a0fb21eed93faf.zip |
pppd: only remove own default route on shutdown (#7694)
SVN-Revision: 22495
Diffstat (limited to 'package/ppp/patches/330-retain_foreign_default_routes.patch')
-rw-r--r-- | package/ppp/patches/330-retain_foreign_default_routes.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/ppp/patches/330-retain_foreign_default_routes.patch b/package/ppp/patches/330-retain_foreign_default_routes.patch new file mode 100644 index 0000000000..d60ccae50c --- /dev/null +++ b/package/ppp/patches/330-retain_foreign_default_routes.patch @@ -0,0 +1,10 @@ +--- a/pppd/sys-linux.c ++++ b/pppd/sys-linux.c +@@ -1717,6 +1717,7 @@ int cifdefaultroute (int unit, u_int32_t + SIN_ADDR(rt.rt_genmask) = 0L; + } + ++ rt.rt_dev = ifname; + rt.rt_flags = RTF_UP; + if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { + if (still_ppp()) { |