Commit graph

13 commits

Author SHA1 Message Date
Casper Meijn
1a999ad02b babeld: create the directory for the config file before writing to it 2014-09-08 14:51:08 +02:00
Baptiste Jonglez
47f74d0041 babeld: Specify edge cases 2014-09-03 15:12:21 +02:00
Baptiste Jonglez
d26e5eb197 babeld: Backward compatibility with old config files
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.
2014-09-03 15:01:44 +02:00
Baptiste Jonglez
e30f3394d3 babeld: Update configuration file for new syntax 2014-09-03 15:01:44 +02:00
Baptiste Jonglez
8ff7cde48f babeld: Support default interface configuration
When a "section interface" does not have a "option ifname", all its
options are used as default interface options.
2014-09-03 15:01:44 +02:00
Baptiste Jonglez
06158b911e babeld: Take interface name from "option ifname"
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.
2014-09-03 15:01:44 +02:00
Baptiste Jonglez
a7a090d12e babeld: Handle ignore options 2014-09-03 15:01:44 +02:00
Baptiste Jonglez
bfbcaf87e6 babeld: Print an error when startup fails 2014-09-03 15:01:44 +02:00
Baptiste Jonglez
20004f09cb babeld: Generate a configuration file instead of passing cmdline arguments
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
2014-09-03 15:01:44 +02:00
Baptiste Jonglez
6218a5ac03 babeld: Update to 1.5.1 2014-09-03 15:01:44 +02:00
Baptiste Jonglez
127d0dcfcf babeld: fix configuration for new options 2014-06-08 12:47:50 +09:00
Gabriel Kerneis
6c4438c93b babeld: new upstream release 1.5.0
22 May 2014: babeld-1.5.0

  * Added support for an RTT-based metric -- see the description of
    "enable-timestamps" in the manual page.  This work was done by
    Baptiste Jonglez with help from Matthieu Boutier.
2014-06-01 14:15:10 +01:00
Gabriel Kerneis
c4de5a575b babeld: migrate from openwrt/packages
- Update maintainer email address
- Wait for babel to die in init script (avoid race-condition on restart)

Signed-off-by: Gabriel Kerneis <gabriel@kerneis.info>
2013-10-28 16:20:38 +00:00