Commit Graph

5255 Commits (2021.4)
 

Author SHA1 Message Date
snowman 3257e30b64 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro bc2090de8e rc: services.c: fix logging 5 years ago
snowman 4e98d26fd7 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro 75fa05c5ea Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro e348ca2ccd firewall: RT and RT-N branches (MIPS) do not load ipt_REDIRECT automagically 5 years ago
pedro 3cef32e9fd vsftpd: add native support for basic ftp_tls using router httpd cert/key 5 years ago
pedro 5216f26031 httpd: fix problems with server.pem key when using HTTPS 5 years ago
pedro 6e793afa98 rc: vsftpd: disable (broken) process isolation under MIPS 5 years ago
M_ars d365748b8f IPv6: split IPv6 / IPv4 up and down logic (they work independent of each other now)
tested with DHCPv6 PD (arm and mips), working correct
5 years ago
M_ars 056ccf5b72 rc: wan.c - adjust function config_pppd() and start/add IPv6 only for "wan" (no IPv6 multiwan support) 5 years ago
pedro 5f9250ec87 rc: firewall.c: use REDIRECT target instead of DNAT to intercept dns traffic, as it's more efficient 5 years ago
pedro 03c18cc835 ntp: implement ntp server properly 5 years ago
snowman58 01e5ad21f0 Update README to include RT-AC67U 5 years ago
snowman58 d90f113346 Add RT-AC67U Support 5 years ago
pedro b2371229d3 build: remove definition of TCONFIG_SAMBA3 from the tree 5 years ago
M_ars 39935146f6 ipv6: Make 'addrconf_rs_timer' send Router Solicitations (and re-arm itself) if Router Advertisements are accepted
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=9ba2add3cf5c103b7236f82a023c8ee05a51e4d1

As of 026359b [ipv6: Send ICMPv6 RSes only when RAs are accepted],
Router Solicitations are sent whenever kernel accepts Router
Advertisements on the interface.

However, this logic isn't reflected in 'addrconf_rs_timer'.

The timer fails to issue subsequent RS messages (and fails to re-arm
itself) if forwarding is enabled and the special hybrid mode is
enabled (accept_ra=2).

Fix the condition determining whether next RS should be sent, by using
'ipv6_accept_ra()'.

Reported-by: Ami Koren <amikoren@yahoo.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
M_ars b97473a596 ipv6: unify logic evaluating inet6_dev's accept_ra property
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=aeaf6e9d2f49d793d3eb8c1af4095cf25e061b94

As of 026359b [ipv6: Send ICMPv6 RSes only when RAs are accepted], the
logic determining whether to send Router Solicitations is identical
to the logic determining whether kernel accepts Router Advertisements.

However the condition itself is repeated in several code locations.

Unify it by introducing 'ipv6_accept_ra()' accessor.

Also, simplify the condition expression, making it more readable.
No semantic change.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
M_ars 63d3f282d3 ipv6: Send ICMPv6 RSes only when RAs are accepted
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=026359bc6eddfdc2d2e684bf0b51691649b90f33

This patch improves the logic determining when to send ICMPv6 Router
Solicitations, so that they are 1) always sent when the kernel is
accepting Router Advertisements, and 2) never sent when the kernel is
not accepting RAs. In other words, the operational setting of the
"accept_ra" sysctl is used.

The change also makes the special "Hybrid Router" forwarding mode
("forwarding" sysctl set to 2) operate exactly the same as the standard
Router mode (forwarding=1). The only difference between the two was
that RSes was being sent in the Hybrid Router mode only. The sysctl
documentation describing the special Hybrid Router mode has therefore
been removed.

Rationale for the change:

Currently, the value of forwarding sysctl is the only thing determining
whether or not to send RSes. If it has the value 0 or 2, they are sent,
otherwise they are not. This leads to inconsistent behaviour in the
following cases:

* accept_ra=0, forwarding=0
* accept_ra=0, forwarding=2
* accept_ra=1, forwarding=2
* accept_ra=2, forwarding=1

In the first three cases, the kernel will send RSes, even though it will
not accept any RAs received in reply. In the last case, it will not send
any RSes, even though it will accept and process any RAs received. (Most
routers will send unsolicited RAs periodically, so suppressing RSes in
the last case will merely delay auto-configuration, not prevent it.)

Also, it is my opinion that having the forwarding sysctl control RS
sending behaviour (completely independent of whether RAs are being
accepted or not) is simply not what most users would intuitively expect
to be the case.

Signed-off-by: Tore Anderson <tore@fud.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
M_ars 90cc6be26f ipv6: Make 'addrconf_rs_timer' send Router Solicitations (and re-arm itself) if Router Advertisements are accepted
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=9ba2add3cf5c103b7236f82a023c8ee05a51e4d1

As of 026359b [ipv6: Send ICMPv6 RSes only when RAs are accepted],
Router Solicitations are sent whenever kernel accepts Router
Advertisements on the interface.

However, this logic isn't reflected in 'addrconf_rs_timer'.

The timer fails to issue subsequent RS messages (and fails to re-arm
itself) if forwarding is enabled and the special hybrid mode is
enabled (accept_ra=2).

Fix the condition determining whether next RS should be sent, by using
'ipv6_accept_ra()'.

Reported-by: Ami Koren <amikoren@yahoo.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
M_ars 053428b332 ipv6: unify logic evaluating inet6_dev's accept_ra property
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=aeaf6e9d2f49d793d3eb8c1af4095cf25e061b94

As of 026359b [ipv6: Send ICMPv6 RSes only when RAs are accepted], the
logic determining whether to send Router Solicitations is identical
to the logic determining whether kernel accepts Router Advertisements.

However the condition itself is repeated in several code locations.

Unify it by introducing 'ipv6_accept_ra()' accessor.

Also, simplify the condition expression, making it more readable.
No semantic change.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
M_ars 6aa3080d6f ipv6: Send ICMPv6 RSes only when RAs are accepted
see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v3.19&id=026359bc6eddfdc2d2e684bf0b51691649b90f33

This patch improves the logic determining when to send ICMPv6 Router
Solicitations, so that they are 1) always sent when the kernel is
accepting Router Advertisements, and 2) never sent when the kernel is
not accepting RAs. In other words, the operational setting of the
"accept_ra" sysctl is used.

The change also makes the special "Hybrid Router" forwarding mode
("forwarding" sysctl set to 2) operate exactly the same as the standard
Router mode (forwarding=1). The only difference between the two was
that RSes was being sent in the Hybrid Router mode only. The sysctl
documentation describing the special Hybrid Router mode has therefore
been removed.

Rationale for the change:

Currently, the value of forwarding sysctl is the only thing determining
whether or not to send RSes. If it has the value 0 or 2, they are sent,
otherwise they are not. This leads to inconsistent behaviour in the
following cases:

* accept_ra=0, forwarding=0
* accept_ra=0, forwarding=2
* accept_ra=1, forwarding=2
* accept_ra=2, forwarding=1

In the first three cases, the kernel will send RSes, even though it will
not accept any RAs received in reply. In the last case, it will not send
any RSes, even though it will accept and process any RAs received. (Most
routers will send unsolicited RAs periodically, so suppressing RSes in
the last case will merely delay auto-configuration, not prevent it.)

Also, it is my opinion that having the forwarding sysctl control RS
sending behaviour (completely independent of whether RAs are being
accepted or not) is simply not what most users would intuitively expect
to be the case.

Signed-off-by: Tore Anderson <tore@fud.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
5 years ago
pedro 5eaa216d8d Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro 224121688d rc: services.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 46d33f83a9 www: advanced-routing.asp: cosmetic 5 years ago
pedro 3de14151f1 rc: remove a forgotten unnecessary subdirectory 5 years ago
pedro ff5f624aaa rc: interface.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro bb73e3e05a rc: gpio.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 018352a606 rc: arpbind.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro e8c29476ad build: cosmetic 5 years ago
pedro 1136bd2132 GUI: Advanced: DHCP/DNS: extend allowed dnsmasq custom configuration text area to 4096 characters 5 years ago
pedro 5fb6c9d4dd rc: sched.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 24f7f959cb rc: forward.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 887f0b4731 rc: jffs2.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 46830c6113 rc: new_qoslimit.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 503c56614f rc: nocat.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 866c7d0e02 rc: pbr.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 9592a05c8c rc: nginx.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 3ca01b4e16 rc: phy_tempsense.c: code optimization and clean-up 5 years ago
pedro 95c64faa3d rc: ppp.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 7e917f6509 rc: rc.c/rc.h: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 7796cbbb81 rc: pptpd.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 5680b02a8e rc: pptp_client.c: a little fix for commit f19cb7d 5 years ago
pedro e7d3e4a880 rc: mysql.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro 04704235cc rc: dhcp.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
pedro e800537f5a GUI: improvement to shutdown() - added 2nd pop-up with confirmation 5 years ago
pedro d6e5a160c1 openvpn: update to 2.5_rc3
- cosmetic in patch
5 years ago
snowman58 95b3807ea1 build: add Netgear R6700v1 support 5 years ago
pedro 83306d93ba rc: switch to killall_tk_period_wait() instead killall_tk(); remove the latter 5 years ago
pedro e781bd600b shared: misc.c: move getNVRAMVar() to libshared 5 years ago
pedro 3e5d10fb78 Merge branch 'arm-master' into arm-sdk7 5 years ago