[packages] olsrd: init: parse new var 'speed', which translates to several other...
authorzioproto <zioproto@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 10 Apr 2013 10:48:35 +0000 (10:48 +0000)
committerzioproto <zioproto@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 10 Apr 2013 10:48:35 +0000 (10:48 +0000)
commit54e2dda4696b43df5035acd99efbe88d5d7ef75c
tree84805ed1602c5ad3f5114f892a14a547db5c941a
parent72dadf133b6f77ff290835faaa8420577e8c8925
[packages] olsrd: init: parse new var 'speed', which translates to several other vars

Range is 1...20 where 1 is fastest protocol speed and 20 is the slowest protocol speed

Like in the Freifunk-Firmware from sven-ola we accept now a per-interface
option 'speed', which should range from 1...20 and is sanitized. when the
value is not in valid range, it defaults to 6 which allows the daemon to
start and behave like in a city-wide mesh. (same default like in freifunk firmware)

The value 'speed' overrides the normal values for emission intervals like
Hello-, Tc-, Mid-, Hna-Interval/ValidityTime or sets them explicitely. this
makes it much easier to play with intervals on several routers:

Instead of changes eight values, we only have to alter 1 value.

The value-calculation is tested since several years.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@36299 3c298f89-4303-0410-b956-a3cf2f4a3e73
net/olsrd/files/olsrd.init