Commit Graph

5233 Commits (2021.3)
 

Author SHA1 Message Date
pedro 21e0309a9e Merge branch 'arm-master' into arm-sdk7 6 years ago
pedro a2880c52c1 Merge branch 'arm-master' into arm-ng 6 years ago
pedro faeb0eeae7 mdu: fix too late libcurl initialization 6 years ago
pedro 9c3912bfcf Merge branch 'arm-master' into arm-sdk7 6 years ago
pedro f25de18f1b Merge branch 'arm-master' into arm-ng 6 years ago
pedro 3f9d11c758 Update CHANGELOG 6 years ago
pedro f202463e2d mdu: fixes and improvements
- remove inactive services
- change (if possible) to use ssl/tls for updates to avoid credential leakage
- ...and more
6 years ago
AndreDVJ fcddc64647 Revert "nocat: Attempts to make Captive Portal work"
This reverts commit 4249f23010.
6 years ago
Michał Obrembski a9d3fa62e9 Added mobrembski feature to about.asp page 6 years ago
pedro e8044b2fe6 router: mdu: fix missing User-Agent curl header 6 years ago
pedro a4ea94456b GUI: add Model Name to the header 6 years ago
pedro acb886b3b7 Merge branch 'arm-master' into arm-sdk7 6 years ago
pedro 8e244facd3 Merge branch 'arm-master' into arm-ng 6 years ago
pedro b834bdc6e1 adminer: update to 4.7.5 6 years ago
M_ars 98a7300959 rc: usb.c: set USB LED(s) after saving settings (case web admin)
fix for: turn USB LED(s) back on after saving settings (with USB storage attached)

tested with RT-N18U and USB flash drive, working
6 years ago
pedro 283aa3ce16 router: shared: defaults.c: change default value for 'pptp_client_usewan' to 'none' 6 years ago
pedro 5c08f0688f pppd: fixes/updates from upstream
- pppd: Check tdb pointer before closing
Check that pointer to the tdb is not NULL before calling tdb_close().
It is possible that the file could not be opened/created due to
permission issues. This change prevents the crash that happens in that
case.

Signed-off-by: Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
b6b4d28e0c

- pppd: Fix GLIBC version test for non-glibc toolchains
Non-glibc toolchains have their include files arranged more similar
to newer glibc's than to older.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
486f854f6a

- pppd: Remove unused rcsid variables
Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
d8e8d7a74b

- pppd: Refactor setjmp/longjmp with pipe pair in event wait loop
setjmp/longjmp isn't supported by all compilers.
Having a pipe pair to wake an event wait loop from within a signal handler
is rather portable and common enough.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
7f2f0deae2

- pppd: Include time.h header before using time_t
Since include/net/ppp_defs.h is used in both kernelspace and userland
it is hard to include <time.h> there.
This commit fixes the problems in userspace code individually and leaves
ppp_defs.h as-is.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
57edb1a0eb

- pppd: Use openssl for the DES instead of the libcrypt / glibc
It seems the latest glibc (in Fedora glibc-2.27.9000-12.fc29) dropped
libcrypt.  The libxcrypt standalone package can be used instead, but
it dropped the old setkey/encrypt API which ppp uses for DES.  There
is support for using openssl in pppcrypt.c, but it contains typos
preventing it from compiling and seems to be written for an ancient
openssl version.

This updates the code to use current openssl.

[paulus@ozlabs.org - wrote the commit description, fixed comment in Makefile.linux.]

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
3c7b86229f

- pppd: Fix variable reference syntax in Makefile.linux
References to the variable called CC in makefiles need to be
written as $(CC) not $CC.  Make interprets the latter as a reference
to the (nonexistent) variable C followed by a literal C.

Fixes: 4e71317 ("make: Avoid using host include for cross-compiling")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
d00f8a0e18

- pppd: Eliminate some more compiler warnings
Recent versions of gcc produce warnings on code where strncpy will
produce a result that is not NULL terminated.  This changes the
code to eliminate these warnings.  In two cases this is done by
changing strncpy to strlcpy, which could in principle cause a loss
of the information in the last byte.  This is not a concern in
these cases because:

- In sys-linux.c, the interface names in struct ifreq were possibly
  not NULL terminated.  The Linux kernel clears the last byte to make
  them NULL terminated anyway, so there is no loss of information.

- In session.c, the lastlog ll_line and ll_host fields were possibly
  not NULL terminated.  These fields are quite long and it is unlikely
  that the last byte is needed.

In the other cases strlcpy and strlcat are used to give the same
effect as the old code but without warnings.

This also changes %ld to %d in one place to eliminate a format warning.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
3ea9de9137
6 years ago
pedro 98e0cad219 pppd: merge patches 109-fixes-from-upstream and 110-various-fixes-for-errors-found-by-coverity-static-analysis with the sources
- these are changes from the upstream, so they should be added to the source, not patches
- let's hope that we will finally see a new pppd release with these patches already in the sources...
- cosmetics in other patches
6 years ago
pedro a5996f4ba8 usb_modeswitch: update data package to 20191128 6 years ago
pedro 0cd8c06e8e usb-modeswitch: update to 2.6.0 6 years ago
pedro 24b636185c libubox: update to 07413cc (2019.11.24) snapshot 6 years ago
pedro 9dbb75d310 libexif: update to da025b3 (2019.12.13) snapshot 6 years ago
pedro afb9a23135 libjson-c: update to d6b968d (2019.12.13) snapshot 6 years ago
pedro ec54866523 php: update to 7.2.26
- cosmetic in patch
6 years ago
pedro 0542b2886e nano: update to 4.6 6 years ago
pedro 4041816d4f tor: update to 0.4.2.5 6 years ago
pedro 3f285753ea dnsmasq: update to 7d04e17 (2019.12.12) snapshot 6 years ago
pedro b83d10dea5 libusb: fixes from upstream
- Linux backend: fix ressource leak
Issue detected by Coverity:
22. leaked_handle: Handle variable fd going out of scope leaks the handle.

Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
1bb774ca7e

- Linux: Improved system out of memory handling
Maps ENOMEM system error to LIBUSB_ERROR_NO_MEM.
97ece77c4a
6 years ago
pedro 19bdbf2a4e patches: ebtables: fix patch 6 years ago
pedro 23abd6f283 ebtables: up version to 2.0.11 6 years ago
pedro fb4d63caa3 pptpd: update poptop to 3b7a80c (2019.10.14) snapshot 6 years ago
pedro bb86bc88c1 Merge branch 'arm-master' into arm-sdk7 6 years ago
pedro a31fd47be8 Merge branch 'arm-master' into arm-ng 6 years ago
pedro eebf810cb1 VPN PPTP: changes and improvements (part 2) - tested on Android and MIPS/ARM routers in different configurations, working (both: lan access and internet)
- change default MTU/MRU to 1400 (client/pptpd)
- change 'Stateless MPPE' to enabled (client)

These two above changes are essential to get working VPN connection with MIPS routers!

Client:
- GUI: add usage and notes about MTU/MRU problems

PPTPD:
- GUI: add option to choose Auth method (Auto/MS-CHAPv1/MS-CHAPv2)
- move working directory to "/etc/vpn/" (the same as for pptpc_client)
- move MTU clamping rule to the top, so it will be processed before the ACCEPT rule, otherwise it will never be used
- more changes and fixes for pptpd code, configuration, etc (thanks @Merlin)
6 years ago
pedro a14d9cb9bc router: rc: mdu: mdu.c: cosmetic, stay as close as possible to MIPS version 6 years ago
Aditya Bhargava f8a4513cb6 Add forgotten conditional mdu libcurl dep to router/Makefile (pull request #14) 6 years ago
Aditya Bhargava ea6f613b3f Merge branch 'arm-master' into ddns-curl 6 years ago
Aditya Bhargava c5ad52fcf6 Merged pedro311/freshtomato-arm into arm-master 6 years ago
Aditya Bhargava 9183aae8b4 Add forgotten conditional mdu libcurl dep 6 years ago
Aditya Bhargava e2a8b21f5f Use libcurl if available for DDNS (pull request #9) 6 years ago
pedro 3ec1e58b80 GUI: OpenVPN Client: cosmetic
- as suggested by @rs232: https://www.linksysinfo.org/index.php?threads/fork-freshtomato-arm-development-thread.74117/post-309967
6 years ago
Don Bushway 6f789543e3 Enable support for lspci in busybox. Enable lsusb, CONFIG_FEATURE_WGET_STATUSBAR, and CONFIG_FEATURE_VERBOSE_USAGE in config_base instead of Makefile. 6 years ago
Don Bushway 4c58add731 Enable support for lspci in busybox. (pull request #11) 6 years ago
Aditya Bhargava 5cfb379e8a Add dns.he.net DDNS support (pull request #10) 6 years ago
Don Bushway 015dc72a3c Enable support for lspci in busybox. Enable lsusb, CONFIG_FEATURE_WGET_STATUSBAR, and CONFIG_FEATURE_VERBOSE_USAGE in config_base instead of Makefile. 6 years ago
pedro 8e4adc3e85 router: rc: services.c: c: Add WPAD DHCP option for Win7/8 by default if dhcpd_auth >=0 is fixed in nvram 6 years ago
pedro a10c3200a1 Merge branch 'arm-master' into arm-sdk7 6 years ago
pedro 67280a7407 Merge branch 'arm-master' into arm-ng 6 years ago
Aditya Bhargava a6ae58a653 Add dns.he.net DDNS support
dns.he.net supports the dyndns protocol (v2) so this is a
very simple patch.
6 years ago
Aditya Bhargava d9af50667a Fix segfault when no headers provided to libcurl request 6 years ago