Change Details
package/ppp/Makefile |
10 | 10 | |
11 | 11 | PKG_NAME:=ppp |
12 | 12 | PKG_VERSION:=2.4.4 |
13 | | PKG_RELEASE:=8 |
| 13 | PKG_RELEASE:=9 |
14 | 14 | |
15 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
16 | 16 | PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/ |
package/ppp/patches/320-custom_iface_names.patch |
78 | 78 | |
79 | 79 | if (ppp_dev_fd >= 0) { |
80 | 80 | dbglog("in make_ppp_unit, already had /dev/ppp open?"); |
81 | | @@ -645,6 +650,32 @@ static int make_ppp_unit() |
| 81 | @@ -645,6 +650,30 @@ static int make_ppp_unit() |
82 | 82 | } |
83 | 83 | if (x < 0) |
84 | 84 | error("Couldn't create new ppp unit: %m"); |
... | ... | |
103 | 103 | + error("Couldn't rename %s to %s", ifr.ifr_name, ifr.ifr_newname); |
104 | 104 | + close(ppp_dev_fd); |
105 | 105 | + ppp_dev_fd = -1; |
106 | | + } else { |
107 | | + info("Renamed %s to %s", ifr.ifr_name, ifr.ifr_newname); |
108 | 106 | + } |
109 | 107 | + } |
110 | 108 | + |
package/ppp/patches/330-retain_foreign_default_routes.patch |
| 1 | --- a/pppd/sys-linux.c |
| 2 | @@ -1717,6 +1717,7 @@ int cifdefaultroute (int unit, u_int32_t |
| 3 | SIN_ADDR(rt.rt_genmask) = 0L; |
| 4 | } |
| 5 | |
| 6 | + rt.rt_dev = ifname; |
| 7 | rt.rt_flags = RTF_UP; |
| 8 | if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { |
| 9 | if (still_ppp()) { |
Download the corresponding diff file