firmware/src/packages/fff
Fabian Bläse 0264cc48b3 fff-hoods: Improve hoodfile gathering logic
Instead of seperately checking for various conditions,
which don't actually guarantee that the hoodfile can be
fetched in a certain way (e.g. internet is available but
keyxchange is down), the already built in return value of
the hoodfile gathering functions is utilized.

This change slightly changes the behaviour of nodes in
certian edge cases:
- If no hoodfile could be fetched from keyxchange, the
  next delivery method (getGatewayHoodfile) is used
- If the gateway is unable to deliver a hoodfile, nodes
  now behave like the gateway is unreachable, instead of
  continuing to use old hoodfiles

These behaviour changes should be an improvement over the
previous behaviour:
- VPN nodes don't disconnect and break the whole network
  if the keyxchange is unreachable, but instead try to
  fetch the hoodfile from the gateway
- Instead of checking for batman gateway announcements,
  which are completely unrelated to hoodfile delivery using
  fe80::1, the actual status of the hoodfile download is
  utilized. This has two effects:
  - hoodfile delivery using fe80::1 works even if batmans
    gateway selection isn't used at all
  - if the batman gateway selection is active, but fe80::1
    hoodfile delivery is broken in the hood, the nodes disconnect
    from the hood and try to gather their hoodfile from nerby
    nodes. Previously they continued to use the old hoodfile.
    This should make misconfigured gateways more apparent.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-01 00:59:41 +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 mtr package 2020-07-14 13:54:46 +02:00
fff-hoods fff-hoods: Improve hoodfile gathering logic 2020-08-01 00:59:41 +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 mt7621: Add support for Netgear R6220 2020-07-20 14:30:39 +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