-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppp: update to 2.5.1 #16605
ppp: update to 2.5.1 #16605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on x86_64 and flogic
Dropping MPPC seems like a good idea to me too |
I think the patent on MPPC has expired. But I guess that doesn't matter here if they dropped it upstream. |
@@ -29,7 +29,7 @@ Signed-off-by: Jo-Philipp Wich <[email protected]> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update the kernel version from 2,6,37
to something more recent like 5.15 or 6.6. There are some checks for kernel if (kernel_version >= KVERSION(4,7,0))
.
I think we can drop this complete patch. How much bytes does it save?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only suppresses some error messages which indicate real errors on recent kernel versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch can reduce the size of the package ppp
by approximately 2.5 KB. I'll rewrite it to remove more useless checks later.
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog Upstreamed patches: 120-debian_ipv6_updown_option.patch [1] 133-fix_sha1_include.patch [2] 140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3] 141-Expand-byte-count-statistics-to-64-bits-298.patch [4] 142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5] 143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6] 144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7] Suppressed patches: 200-makefile.patch [8] 201-mppe_mppc_1.1.patch [9] 203-opt_flags.patch [10] 300-filter-pcap-includes-lib.patch [11] 511-pptp_cflags.patch [12] 600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13] 610-pppd_compile_fix.patch [14] [1] ppp-project/ppp@7f8c1a1 [2] ppp-project/ppp@ba7f7e0 [3] ppp-project/ppp@98ec18f [4] ppp-project/ppp@81ad945 [5] ppp-project/ppp@4a54e34 [6] ppp-project/ppp@44609bf [7] ppp-project/ppp@089687f [8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure [9] enable_microsoft_extensions=yes, MPPC support is removed. [10] fPIC ignored so far [11] done by autotools [12] in main patch for pptp plugin [13] with_openssl=no, already in upstream ppp-des.c [14] with_static_pcap=yes from patch 310 Signed-off-by: Sergey Ivanov <[email protected]> * Fix package hash. * Fix multilink variant build. * Fix some compile errors. * Some code format fixes. * Refactor commit message. * Rebase git and fix conflicts. Co-authored-by: Shiji Yang <[email protected]> Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1] ppp-project/ppp@e48a9b5 [2] Merged into "500-add-pptp-plugin.patch" [3] ppp-project/ppp@797cdae [4] ppp-project/ppp@9856f47 [5] ppp-project/ppp@59342ab Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit: 57fe7d5 ("toolchain: remove uClibc install stuff") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if discovery phase fails on first attempt. There is a chance to fix the "Timeout waiting for PADO packets" issue by removing this patch. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient build fixes. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
Thank you for the PR, I hope that this will not introduce too many new problems. |
Thanks to @DragonBluep for this PPP 2.5.1 PR (and @icegood for PPP 2.5.0 origin) and @hauke for merging and all others participants @nasbdh9 (test), @nbd168, @systemcrash (@rsalvaterra, @mrkiko, @dchard, @BKPepe, @wongsyrone, @zdz2019, @Ansuel, @ptpt52, @curtdept, @enaess)! Linked to: |
Basic PPPoE WAN connection seems to be working fine on ppp 2.5.1 . Thank you everyone involved in this effort. Router: GL.iNet GL-MT6000 (Flint 2) (Target: mediatek/filogic) (Arch: aarch64_cortex-a53) |
pptpd build failed agaist this new ppp version |
It seems that OpenWrt buildbot did not catch any build issues: |
pptpd build log:
|
@ptpt52 likely have to make an issue in packages but it looks like pptpd has had a 1.5 update out for a while that might address a bunch of this |
seems good to upgrade to pptpd 1.5.0 |
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog Upstreamed patches: 120-debian_ipv6_updown_option.patch [1] 133-fix_sha1_include.patch [2] 140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3] 141-Expand-byte-count-statistics-to-64-bits-298.patch [4] 142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5] 143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6] 144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7] Suppressed patches: 200-makefile.patch [8] 201-mppe_mppc_1.1.patch [9] 203-opt_flags.patch [10] 300-filter-pcap-includes-lib.patch [11] 511-pptp_cflags.patch [12] 600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13] 610-pppd_compile_fix.patch [14] [1] ppp-project/ppp@7f8c1a1 [2] ppp-project/ppp@ba7f7e0 [3] ppp-project/ppp@98ec18f [4] ppp-project/ppp@81ad945 [5] ppp-project/ppp@4a54e34 [6] ppp-project/ppp@44609bf [7] ppp-project/ppp@089687f [8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure [9] enable_microsoft_extensions=yes, MPPC support is removed. [10] fPIC ignored so far [11] done by autotools [12] in main patch for pptp plugin [13] with_openssl=no, already in upstream ppp-des.c [14] with_static_pcap=yes from patch 310 Signed-off-by: Sergey Ivanov <[email protected]> * Fix package hash. * Fix multilink variant build. * Fix some compile errors. * Some code format fixes. * Refactor commit message. * Rebase git and fix conflicts. Co-authored-by: Shiji Yang <[email protected]> Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1] ppp-project/ppp@e48a9b5 [2] Merged into "500-add-pptp-plugin.patch" [3] ppp-project/ppp@797cdae [4] ppp-project/ppp@9856f47 [5] ppp-project/ppp@59342ab Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit: 57fe7d5 ("toolchain: remove uClibc install stuff") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if discovery phase fails on first attempt. There is a chance to fix the "Timeout waiting for PADO packets" issue by removing this patch. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient build fixes. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
Noted, no action required. Please do upgrade to pptpd-1.5.0, and if any further changes are required rebase against HEAD and make pull request. https://github.com/quozl/pptpd |
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog Upstreamed patches: 120-debian_ipv6_updown_option.patch [1] 133-fix_sha1_include.patch [2] 140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3] 141-Expand-byte-count-statistics-to-64-bits-298.patch [4] 142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5] 143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6] 144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7] Suppressed patches: 200-makefile.patch [8] 201-mppe_mppc_1.1.patch [9] 203-opt_flags.patch [10] 300-filter-pcap-includes-lib.patch [11] 511-pptp_cflags.patch [12] 600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13] 610-pppd_compile_fix.patch [14] [1] ppp-project/ppp@7f8c1a1 [2] ppp-project/ppp@ba7f7e0 [3] ppp-project/ppp@98ec18f [4] ppp-project/ppp@81ad945 [5] ppp-project/ppp@4a54e34 [6] ppp-project/ppp@44609bf [7] ppp-project/ppp@089687f [8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure [9] enable_microsoft_extensions=yes, MPPC support is removed. [10] fPIC ignored so far [11] done by autotools [12] in main patch for pptp plugin [13] with_openssl=no, already in upstream ppp-des.c [14] with_static_pcap=yes from patch 310 Signed-off-by: Sergey Ivanov <[email protected]> * Fix package hash. * Fix multilink variant build. * Fix some compile errors. * Some code format fixes. * Refactor commit message. * Rebase git and fix conflicts. Co-authored-by: Shiji Yang <[email protected]> Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1] ppp-project/ppp@e48a9b5 [2] Merged into "500-add-pptp-plugin.patch" [3] ppp-project/ppp@797cdae [4] ppp-project/ppp@9856f47 [5] ppp-project/ppp@59342ab Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit: 57fe7d5 ("toolchain: remove uClibc install stuff") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if discovery phase fails on first attempt. There is a chance to fix the "Timeout waiting for PADO packets" issue by removing this patch. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient build fixes. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog Upstreamed patches: 120-debian_ipv6_updown_option.patch [1] 133-fix_sha1_include.patch [2] 140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3] 141-Expand-byte-count-statistics-to-64-bits-298.patch [4] 142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5] 143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6] 144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7] Suppressed patches: 200-makefile.patch [8] 201-mppe_mppc_1.1.patch [9] 203-opt_flags.patch [10] 300-filter-pcap-includes-lib.patch [11] 511-pptp_cflags.patch [12] 600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13] 610-pppd_compile_fix.patch [14] [1] ppp-project/ppp@7f8c1a1 [2] ppp-project/ppp@ba7f7e0 [3] ppp-project/ppp@98ec18f [4] ppp-project/ppp@81ad945 [5] ppp-project/ppp@4a54e34 [6] ppp-project/ppp@44609bf [7] ppp-project/ppp@089687f [8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure [9] enable_microsoft_extensions=yes, MPPC support is removed. [10] fPIC ignored so far [11] done by autotools [12] in main patch for pptp plugin [13] with_openssl=no, already in upstream ppp-des.c [14] with_static_pcap=yes from patch 310 Signed-off-by: Sergey Ivanov <[email protected]> * Fix package hash. * Fix multilink variant build. * Fix some compile errors. * Some code format fixes. * Refactor commit message. * Rebase git and fix conflicts. Co-authored-by: Shiji Yang <[email protected]> Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1] ppp-project/ppp@e48a9b5 [2] Merged into "500-add-pptp-plugin.patch" [3] ppp-project/ppp@797cdae [4] ppp-project/ppp@9856f47 [5] ppp-project/ppp@59342ab Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit: 57fe7d5 ("toolchain: remove uClibc install stuff") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if discovery phase fails on first attempt. There is a chance to fix the "Timeout waiting for PADO packets" issue by removing this patch. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient build fixes. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog Upstreamed patches: 120-debian_ipv6_updown_option.patch [1] 133-fix_sha1_include.patch [2] 140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3] 141-Expand-byte-count-statistics-to-64-bits-298.patch [4] 142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5] 143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6] 144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7] Suppressed patches: 200-makefile.patch [8] 201-mppe_mppc_1.1.patch [9] 203-opt_flags.patch [10] 300-filter-pcap-includes-lib.patch [11] 511-pptp_cflags.patch [12] 600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13] 610-pppd_compile_fix.patch [14] [1] ppp-project/ppp@7f8c1a1 [2] ppp-project/ppp@ba7f7e0 [3] ppp-project/ppp@98ec18f [4] ppp-project/ppp@81ad945 [5] ppp-project/ppp@4a54e34 [6] ppp-project/ppp@44609bf [7] ppp-project/ppp@089687f [8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure [9] enable_microsoft_extensions=yes, MPPC support is removed. [10] fPIC ignored so far [11] done by autotools [12] in main patch for pptp plugin [13] with_openssl=no, already in upstream ppp-des.c [14] with_static_pcap=yes from patch 310 Signed-off-by: Sergey Ivanov <[email protected]> * Fix package hash. * Fix multilink variant build. * Fix some compile errors. * Some code format fixes. * Refactor commit message. * Rebase git and fix conflicts. Co-authored-by: Shiji Yang <[email protected]> Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog: https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog Suppressed patches: 010-use_target_for_configure.patch [1] 510-pptp_compile_fix.patch [2] 520-u_int_bsd_fix.patch [3] Upstreamed patches: 330-retain_foreign_default_routes.patch [4] 521-remove_unused_openssl_dep.patch [5] [1] ppp-project/ppp@e48a9b5 [2] Merged into "500-add-pptp-plugin.patch" [3] ppp-project/ppp@797cdae [4] ppp-project/ppp@9856f47 [5] ppp-project/ppp@59342ab Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit: 57fe7d5 ("toolchain: remove uClibc install stuff") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if discovery phase fails on first attempt. There is a chance to fix the "Timeout waiting for PADO packets" issue by removing this patch. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient build fixes. Signed-off-by: Shiji Yang <[email protected]> Link: openwrt#16605 Signed-off-by: Hauke Mehrtens <[email protected]>
@DragonBluep: There is a new PPP version: 2.5.2, can you look? |
The original PR: #12848
Notice:
ppp
package size (cortex-a53 variant) increased by ~10 KB, 137 KB --> 147 KB.