Updates to babeld
This patchset:
- fixes#33 by generating a configuration file for babeld
- introduces a slightly different syntax for specfiying interfaces (backward-compatible)
- allows to use any option, as long as it's supported by babeld (i.e. valid options are not hardcoded in the init script anymore, all options are simply passed to babeld)
It is mostly backward-compatible, with a few caveats.
Thanks to Baptiste Jonglez.
This allows to use the old syntax "config interface foo" for specifying an
interface. The new syntax ("option ifname foo") takes precedence.
Also, old option names for the "general" section are translated
accordingly. Exceptions are:
- 'hello_interval' and 'wired_hello_interval', which are now interface-specific;
- 'conf_file', since /etc/babeld.conf is now always used;
which are simply ignored.
Beware, the syntax for the 'diversity' option is not backward compatible.
Previously, we were using the name of the section as the interface name,
but this has several drawbacks:
- no "-" or other special characters are allowed in a section name,
preventing some physical interface names to be specified this way
(e.g. "tun-topeka" would not work)
- it is harder to support default interface options (no interface name)
This change is not backward compatible, but a later commit will fix that.
This is the first step toward fixing issue #33.
This still lacks some features:
- no support for "ignore" options
- no backward compatibility for option names
- no support for default interface options
From the CHANGELOG:
* fix various possible memleak, access errors and strncpy issues
* handle fcntl return codes
* fix altitude verification check in gpsd
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
A missing space in the init script prevented the detection of the external
interface. Fixes OpenWrt bug #16910.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
- uci has per-interface 'mode' flag now, as opposed to 'adhoc' 'guest' etc.
- made default logging level less verbose (can be changed back in init script)
- better prefix selection logic
- better initial assignment handling (prevent initial duplicate assignments)