Skip to content

Commit b25d90b

Browse files
LGA1150jonasjelonek
authored andcommitted
ppp: update to 2.5.3
Update to 2.5.3 and use the official tarball. Changelog: https://github.com/ppp-project/ppp/releases/tag/v2.5.3 Removed upstreamed: - 000-pppd-session-fixed-building-with-gcc-15.patch - 001-pppdump-fixed-building-with-gcc-15.patch - 501-fix-memcpy-fortify.patch - 502-remove_mru.patch Manually rebased: - 500-add-pptp-plugin.patch Add a pending patch to relax the check to avoid breaking existing configurations. Signed-off-by: Qingfang Deng <dqfext@gmail.com> Link: openwrt/openwrt#23540 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
1 parent db533a6 commit b25d90b

15 files changed

Lines changed: 792 additions & 210 deletions

package/network/services/ppp/Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ include $(TOPDIR)/rules.mk
99
include $(INCLUDE_DIR)/kernel.mk
1010

1111
PKG_NAME:=ppp
12-
PKG_VERSION:=2.5.2
13-
PKG_RELEASE:=3
14-
15-
PKG_SOURCE_PROTO:=git
16-
PKG_SOURCE_URL:=https://github.com/ppp-project/ppp
17-
PKG_MIRROR_HASH:=381668ce1547afeaf599f08ae37935bfd3d5841747c62bca5a870c11e3e9bedb
18-
PKG_SOURCE_DATE:=2024-12-31
19-
PKG_SOURCE_VERSION:=9f612dc02c34509f062ed63b60bcc7e937e25178
12+
PKG_VERSION:=2.5.3
13+
PKG_RELEASE:=1
14+
15+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16+
PKG_SOURCE_URL:=https://download.samba.org/pub/ppp
17+
PKG_HASH:=ddda28dec8aca99a403ab6070d94ffd2b17d63e9a4c5509158e99e148f572d4f
2018

2119
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
2220
PKG_LICENSE:=BSD-4-Clause

package/network/services/ppp/patches/000-pppd-session-fixed-building-with-gcc-15.patch

Lines changed: 0 additions & 30 deletions
This file was deleted.

package/network/services/ppp/patches/001-pppdump-fixed-building-with-gcc-15.patch

Lines changed: 0 additions & 70 deletions
This file was deleted.

package/network/services/ppp/patches/105-debian_demand.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
} else {
138138
--- a/pppd/ipcp.c
139139
+++ b/pppd/ipcp.c
140-
@@ -1915,7 +1915,7 @@ ipcp_up(fsm *f)
140+
@@ -1930,7 +1930,7 @@ ipcp_up(fsm *f)
141141
proxy_arp_set[f->unit] = 1;
142142

143143
}
@@ -148,7 +148,7 @@
148148
} else {
149149
--- a/pppd/ipv6cp.c
150150
+++ b/pppd/ipv6cp.c
151-
@@ -1338,7 +1338,7 @@ ipv6cp_up(fsm *f)
151+
@@ -1344,7 +1344,7 @@ ipv6cp_up(fsm *f)
152152
if (sif6defaultroute(f->unit, go->ourid, ho->hisid))
153153
default_route_set[f->unit] = 1;
154154
}
@@ -159,7 +159,7 @@
159159
} else {
160160
--- a/pppd/pppd-private.h
161161
+++ b/pppd/pppd-private.h
162-
@@ -370,7 +370,7 @@ void demand_conf(void); /* config interf
162+
@@ -375,7 +375,7 @@ void demand_conf(void); /* config interf
163163
void demand_block(void); /* set all NPs to queue up packets */
164164
void demand_unblock(void); /* set all NPs to pass packets */
165165
void demand_discard(void); /* set all NPs to discard packets */

package/network/services/ppp/patches/208-fix_status_code.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
1212

1313
--- a/pppd/main.c
1414
+++ b/pppd/main.c
15-
@@ -1150,7 +1150,8 @@ get_input(void)
15+
@@ -1159,7 +1159,8 @@ get_input(void)
1616
}
1717
notice("Modem hangup");
1818
hungup = 1;

package/network/services/ppp/patches/310-precompile_filter.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2323
#
2424
# SunOS provides a version of libpcap that would work, but SunOS has no support for activity filter
2525
AM_CONDITIONAL([PPP_WITH_FILTER], [ test "x${with_pcap}" = "xyes" && test "x${build_sunos}" != "xyes" ])
26-
@@ -348,6 +351,7 @@ $PACKAGE_NAME version $PACKAGE_VERSION
26+
@@ -349,6 +352,7 @@ $PACKAGE_NAME version $PACKAGE_VERSION
2727
With libatm..........: ${with_atm:-no}
2828
With libpam..........: ${with_pam:-no}
2929
With libpcap.........: ${with_pcap:-no}
@@ -56,7 +56,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5656
/*
5757
* There have been 3 or 4 different names for this in libpcap CVS, but
5858
* this seems to be what they have settled on...
59-
@@ -182,6 +183,13 @@ static int setlogfile(char **);
59+
@@ -186,6 +187,13 @@ static int setlogfile(char **);
6060
static int loadplugin(char **);
6161
#endif
6262

@@ -70,7 +70,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7070
#ifdef PPP_WITH_FILTER
7171
static int setpassfilter(char **);
7272
static int setactivefilter(char **);
73-
@@ -391,6 +399,14 @@ struct option general_options[] = {
73+
@@ -404,6 +412,14 @@ struct option general_options[] = {
7474
"set filter for active pkts", OPT_PRIO },
7575
#endif
7676

@@ -85,7 +85,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8585
{ "maxoctets", o_int, &maxoctets,
8686
"Set connection traffic limit",
8787
OPT_PRIO | OPT_LLIMIT | OPT_NOINCR | OPT_ZEROINF },
88-
@@ -1666,6 +1682,27 @@ callfile(char **argv)
88+
@@ -1690,6 +1706,27 @@ callfile(char **argv)
8989
return ok;
9090
}
9191

package/network/services/ppp/patches/321-multilink_support_custom_iface_names.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Signed-off-by: George Kashperko <george@znau.edu.ua>
119119
&& memcmp(vd.dptr, key.dptr, vd.dsize) == 0;
120120
--- a/pppd/sys-linux.c
121121
+++ b/pppd/sys-linux.c
122-
@@ -980,6 +980,16 @@ void cfg_bundle(int mrru, int mtru, int
122+
@@ -1111,6 +1111,16 @@ void cfg_bundle(int mrru, int mtru, int
123123
add_fd(ppp_dev_fd);
124124
}
125125

@@ -136,7 +136,7 @@ Signed-off-by: George Kashperko <george@znau.edu.ua>
136136
/*
137137
* make_new_bundle - create a new PPP unit (i.e. a bundle)
138138
* and connect our channel to it. This should only get called
139-
@@ -998,6 +1008,8 @@ void make_new_bundle(int mrru, int mtru,
139+
@@ -1129,6 +1139,8 @@ void make_new_bundle(int mrru, int mtru,
140140

141141
/* set the mrru and flags */
142142
cfg_bundle(mrru, mtru, rssn, tssn);

package/network/services/ppp/patches/340-populate_default_gateway.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
1313

1414
--- a/pppd/sys-linux.c
1515
+++ b/pppd/sys-linux.c
16-
@@ -2247,6 +2247,9 @@ int sifdefaultroute (int unit, u_int32_t
16+
@@ -2374,6 +2374,9 @@ int sifdefaultroute (int unit, u_int32_t
1717
memset (&rt, 0, sizeof (rt));
1818
SET_SA_FAMILY (rt.rt_dst, AF_INET);
1919

@@ -23,7 +23,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2323
rt.rt_dev = ifname;
2424
rt.rt_metric = dfl_route_metric + 1; /* +1 for binary compatibility */
2525

26-
@@ -2255,7 +2258,7 @@ int sifdefaultroute (int unit, u_int32_t
26+
@@ -2382,7 +2385,7 @@ int sifdefaultroute (int unit, u_int32_t
2727
SIN_ADDR(rt.rt_genmask) = 0L;
2828
}
2929

package/network/services/ppp/patches/400-simplify_kernel_checks.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
1010

1111
--- a/pppd/sys-linux.c
1212
+++ b/pppd/sys-linux.c
13-
@@ -220,14 +220,10 @@ static fd_set in_fds; /* set of fds tha
14-
static int max_in_fd; /* highest fd set in in_fds */
13+
@@ -218,14 +218,10 @@ static int chindex; /* channel index (n
14+
static unsigned routing_table_id = RT_TABLE_MAIN;
1515

1616
static int has_proxy_arp = 0;
1717
-static int driver_version = 0;
@@ -26,7 +26,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2626

2727
static char loop_name[20];
2828
static unsigned char inbuf[512]; /* buffer for chars read from loopback */
29-
@@ -245,9 +241,8 @@ static int dynaddr_set; /* 1 if ip_dyna
29+
@@ -241,9 +237,8 @@ static int dynaddr_set; /* 1 if ip_dyna
3030
static int looped; /* 1 if using loop */
3131
static int link_mtu; /* mtu for the link (not bundle) */
3232

@@ -37,7 +37,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
3737

3838
#define MAX_IFS 100
3939

40-
@@ -1966,11 +1961,12 @@ int ccp_fatal_error (int unit)
40+
@@ -2067,11 +2062,12 @@ int ccp_fatal_error (int unit)
4141
*
4242
* path_to_procfs - find the path to the proc file system mount point
4343
*/
@@ -52,15 +52,15 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5252
struct mntent *mntent;
5353
FILE *fp;
5454

55-
@@ -1992,6 +1988,7 @@ static char *path_to_procfs(const char *
55+
@@ -2093,6 +2089,7 @@ static char *path_to_procfs(const char *
5656
fclose (fp);
5757
}
5858
}
5959
+#endif
6060

6161
strlcpy(proc_path + proc_path_len, tail,
6262
sizeof(proc_path) - proc_path_len);
63-
@@ -2883,6 +2880,8 @@ ppp_registered(void)
63+
@@ -2874,6 +2871,8 @@ ppp_registered(void)
6464

6565
int ppp_check_kernel_support(void)
6666
{
@@ -69,39 +69,39 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6969
int s, ok, fd;
7070
struct ifreq ifr;
7171
int size;
72-
@@ -3010,6 +3009,7 @@ int ppp_check_kernel_support(void)
72+
@@ -3001,6 +3000,7 @@ int ppp_check_kernel_support(void)
7373
}
7474
close(s);
7575
return ok;
7676
+#endif
7777
}
7878

7979
#ifndef HAVE_LOGWTMP
80-
@@ -3571,6 +3571,7 @@ get_pty(int *master_fdp, int *slave_fdp,
80+
@@ -3562,6 +3562,7 @@ get_pty(int *master_fdp, int *slave_fdp,
8181
}
8282
#endif /* TIOCGPTN */
8383

8484
+#if 0
8585
if (sfd < 0) {
8686
/* the old way - scan through the pty name space */
8787
for (i = 0; i < 64; ++i) {
88-
@@ -3595,6 +3596,7 @@ get_pty(int *master_fdp, int *slave_fdp,
88+
@@ -3586,6 +3587,7 @@ get_pty(int *master_fdp, int *slave_fdp,
8989
}
9090
}
9191
}
9292
+#endif
9393

9494
if (sfd < 0)
9595
return 0;
96-
@@ -3710,6 +3712,7 @@ get_host_seed(void)
96+
@@ -3701,6 +3703,7 @@ get_host_seed(void)
9797
int
9898
sys_check_options(void)
9999
{
100100
+#if 0
101101
if (demand && driver_is_old) {
102102
ppp_option_error("demand dialling is not supported by kernel driver "
103103
"version %d.%d.%d", driver_version, driver_modification,
104-
@@ -3720,6 +3723,7 @@ sys_check_options(void)
104+
@@ -3711,6 +3714,7 @@ sys_check_options(void)
105105
warn("Warning: multilink is not supported by the kernel driver");
106106
multilink = 0;
107107
}
@@ -147,7 +147,7 @@ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
147147
info("PPPoE plugin from pppd %s", PPPD_VERSION);
148148
--- a/pppd/plugins/pppol2tp/pppol2tp.c
149149
+++ b/pppd/plugins/pppol2tp/pppol2tp.c
150-
@@ -501,10 +501,6 @@ static void pppol2tp_cleanup(void)
150+
@@ -502,10 +502,6 @@ static void pppol2tp_cleanup(void)
151151
void plugin_init(void)
152152
{
153153
#if defined(__linux__)

0 commit comments

Comments
 (0)