firmware/src/packages/fff
Adrian Schmutzler 24be8ecdda fff-network: fix unintended wan=eth1 for two-port devices
For historic reasons, the wan interface is set to eth1 as default
value. When updating the config for one-port devices in
configurenetwork, the same value is put there again if the mode
is switched to something != WAN, instead of just removing the
value.

While ifname actually is a mandatory value, this has been handled
inconsistently in the past, where ethmesh ifname was deleted, and
wan ifname was just changed back to eth1, when assigning the
actually relevant eth0 to a different task.

This concept was set up with a one-port device in mind, i.e. a
device where there is no eth1. However, this very setup routine
got applied to the Nanostation M as well (which is treated as
as one-port), where we suddenly have two interfaces and the eth1
exists.
So, while the user assumes it's unconfigured, the second port
actually becomes set up as WAN if the first one is != WAN.
If connected to a second device with CLIENT (=default) to provide
PoE there, this will create a loop.

So, finally, in order to somehow fix this mess, this patch just
changes the hardcoded "eth1" to "eth2". While this is no proper
fix, it perpetuates the original idea of keeping wan set to
something, but nothing which actually exists. However, there are
no sideeffects and we keep this minimal-invasive.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
2020-09-15 13:05:49 +02:00
..
alfred-json alfred-json: Set PKG_VERSION to latest official version 2019-07-01 21:37:23 +02:00
fff packages/fff: Add fff-simple-tc 2020-03-22 20:00:55 +01:00
fff-alfred treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-alfred-monitoring-proxy alfred-proxy: Make curl silent 2020-06-18 12:22:22 +02:00
fff-babeld treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-batman-adv treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-boardname treewide: move devices from ar71xx to ath79 2020-06-18 12:41:03 +02:00
fff-config treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-dhcp treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-fastd treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-firewall firewall.d: Check for unset IF_WAN 2019-11-17 15:46:34 +01:00
fff-gateway fff-gateway: Add tc and bmon 2020-09-15 13:05:49 +02:00
fff-hoods fff-hoods: fix/simplify condition in configurehood 2020-08-01 12:10:18 +02:00
fff-hoodutils fff-hoodutils: Add fallback for upgrade path 2019-11-23 14:29:15 +01:00
fff-macnock fff-macnock: update to latest revision 2020-05-01 17:47:25 +02:00
fff-network fff-network: fix unintended wan=eth1 for two-port devices 2020-09-15 13:05:49 +02:00
fff-node packages/fff: Merge meta packages for variants into config packages 2019-11-17 15:48:50 +01:00
fff-nodewatcher nodewatcher: Only report batman_adv version if installed 2020-04-23 12:00:17 +02:00
fff-ra treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-random packages/fff: Only use PKG_RELEASE for our own packages 2019-07-01 21:54:09 +02:00
fff-simple-tc treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-support treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-sysupgrade treewide: add "exit 0" for uci-defaults files 2020-04-23 12:00:17 +02:00
fff-timeserver fff-timeserver: remove -q from uci and drop unused library source 2020-05-05 13:44:30 +02:00
fff-uradvd packages/fff: Only use PKG_RELEASE for our own packages 2019-07-01 21:54:09 +02:00
fff-vpn-select vpn-select: indent contents of make_config function 2020-04-19 15:44:08 +02:00
fff-web fff-hoods/fff-web: create link to hood file in fff-hoods 2020-06-18 13:05:49 +02:00
fff-wireguard fff-wireguard: Use babel type wired for wireguard babel peers 2020-06-18 12:24:40 +02:00
fff-wireless treewide: move devices from ar71xx to ath79 2020-06-18 12:41:03 +02:00