firmware/src/packages/fff
Fabian Bläse b26399283a fff-ra: use dhcp leasetime for preferred and valid lifetime
When advertising network prefixes gathered from the interface, odhcpd
sets the preferred and valid lifetime of those prefixes in the router
advertisement to the values set for those addresses on the interface.

When prefixes are configured statically (as done in our firmware), this
means that odhcp announces these prefixes for SLAAC with infinite
preferred and valid lifetimes.

While this does not seem like a problem at first, it hurts significantly
when configuration errors are made or cables are plugged into the wrong
ports, because those addresses never vanish from devices anymore, as long
as they are powered up. Also, it makes it impossible to change prefixes
without gracefully shutting down the RA server, so it can announce zero
lifetimes for previously announced prefixes.

Sadly, odhcp does not have an option to configure these lifetimes
explicitly, but it is possible to limit these lifetimes to the lease
time configured and used for the DHCP functionality of odhcpd.
Enable the appropriate 'ra_useleasetime' option to reduce impact of the
before mentioned problems.

Fixes: #142

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
2022-04-05 21:25:19 +02:00
..
alfred-json treewide: use SPDX license identifiers 2021-03-06 18:53:26 +01:00
fff-alfred treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-alfred-monitoring-proxy treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-babel fff-babel: Make implementation runtime switchable 2022-03-23 19:47:02 +01:00
fff-babel-bird2 fff-babel: Make implementation runtime switchable 2022-03-23 19:47:02 +01:00
fff-babeld fff-babel: Make implementation runtime switchable 2022-03-23 19:47:02 +01:00
fff-base Simplify firmware variant selection 2022-03-31 19:17:01 +02:00
fff-batman-adv treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-boardname Add support for x86_64 2022-03-11 12:34:59 +01:00
fff-config fff-config: Set panic on OOM 2022-03-05 18:19:13 +01:00
fff-dhcp fff-dhcp: increase dns cachesize 2022-03-05 19:31:00 +01:00
fff-fastd fff-fastd: fix fastd start/stop 2022-03-23 19:47:38 +01:00
fff-firewall treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-hoods treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-hoodutils treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-layer3 fff-layer3: Add latency to nodewatcher 2022-03-23 19:47:05 +01:00
fff-layer3-config fff-layer3-config: Always clear client interface list completely 2022-03-05 18:19:02 +01:00
fff-layer3-snat treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-macnock Unify package URL in fff-packages 2021-11-10 13:42:03 +01:00
fff-mqtt fff-mqtt: Switch from mosquitto-ssl to mosquitto-nossl 2022-03-31 19:31:25 +02:00
fff-mqtt-monitoring treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-network fff-network: Do not configure switch for ONE and TWO_PORT devices 2022-03-31 19:31:25 +02:00
fff-node treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-nodewatcher nodewatcher: Trigger "WAN Uplink" also with vxlan 2022-03-31 19:31:25 +02:00
fff-ra fff-ra: use dhcp leasetime for preferred and valid lifetime 2022-04-05 21:25:19 +02:00
fff-random treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-simple-tc treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-support treewide: remove ETHPORT leftovers 2022-03-31 19:31:25 +02:00
fff-sysupgrade treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-timeserver treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-uradvd fff-uradvd: Add reload trigger for network 2022-03-05 18:17:25 +01:00
fff-vpn-select fff-vpn-select: do not configure peers on vpn-stop 2022-03-23 19:47:22 +01:00
fff-vxlan-node-vpn fff-vxlan-node: disable vxlan by default 2022-03-31 19:31:25 +02:00
fff-web-hood treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-web-mqtt treewide: set PKG_RELEASE automatically 2022-01-09 22:03:09 +01:00
fff-web-ui treewide: remove ETHPORT leftovers 2022-03-31 19:31:25 +02:00
fff-wireguard Add support for different babel implementations 2022-03-23 19:46:30 +01:00
fff-wireless OpenWrt: bump to v21.02.2 2022-03-05 18:09:49 +01:00