- 14 Nov, 2013 15 commits
-
-
Baptiste Jonglez authored
Note that this commit is a no-op, since this condition is true by default, and it cannot be set in the configuration yet.
-
Baptiste Jonglez authored
Note that this commit effectively disables the computation of a cost from the RTT, since 'max-rtt-penalty' defaults to 0.
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
To do this, we use the timestamps piggybacked on Hello and IHU messages.
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
We use a sub-TLV to do so, which we fill out at the very last moment to get an accurate timing. This timestamp will be used to compute the RTT to our neighbours.
-
Baptiste Jonglez authored
Note that babeld's behaviour is not modified by this commit. This will be used to embed a timestamp into Hello messages, which will eventually allow to compute the RTT between nodes.
-
Baptiste Jonglez authored
-
Baptiste Jonglez authored
parse_msec() is not specific to milliseconds, it can parse any fixed-point string. It can be used, for instance, to parse a fixed-point string written in milliseconds and interpret it as an integer in microseconds.
-
- 08 Nov, 2013 1 commit
-
-
Baptiste Jonglez authored
-
- 07 Nov, 2013 4 commits
-
-
Baptiste Jonglez authored
-
Juliusz Chroboczek authored
-
Juliusz Chroboczek authored
-
Matthieu Boutier authored
The prefix field’s size is Plen/8 rounded upwards.
-
- 24 Jul, 2013 1 commit
-
-
Baptiste Jonglez authored
With large txcost and rxcost, the calculated cost to a neighbour can exceed 65535, i.e. INFINITY. This is not a real issue, since any cost over 65535 is equally seen as infinity. However, it can confuse other tools (e.g. babelweb) who wouldn't expect a cost higher than infinity.
-
- 11 Jul, 2013 2 commits
-
-
Gregoire Henry authored
This is buggy on OS X, at least. As for linux we choose to be safe and we deactivate atomic route changes on all BSDs.
-
Gregoire Henry authored
This flag is easiest way to filter out babel's route in the kernel_routes function. This reverts commit 0845af77.
-
- 09 Jul, 2013 2 commits
-
-
Baptiste Jonglez authored
This prevents a DoS from the local interface, which could be performed by any user on the system running babeld. A malicious attacker could connect to the local interface, and then wait without reading any data. When the send buffer eventually fills up, babeld would block; as a result, it would become completely inoperative. Note that 'local_server_socket' is already non-blocking, but the sockets spawned by accept() don't inherit this flag. From accept(2): On Linux, the new socket returned by accept() does not inherit file status flags such as O_NONBLOCK and O_ASYNC from the listening socket.
-
Baptiste Jonglez authored
The various cases of success or failure are quite intricate. Since we plan to intricate it further in an upcoming commit, it's better to refactor it now.
-
- 02 Jul, 2013 1 commit
-
-
Matthieu Boutier authored
We were using the Flags field instead of the AE field when parsing compressed IPv4 prefixes in Update messages. This bug shouldn't trigger, since we never use compression with IPv4.
-
- 27 Jun, 2013 2 commits
-
-
Matthieu Boutier authored
-
Matthieu Boutier authored
-
- 24 Jun, 2013 4 commits
-
-
Matthieu Boutier authored
-
Matthieu Boutier authored
-
Matthieu Boutier authored
-
Matthieu Boutier authored
-
- 23 Jun, 2013 2 commits
-
-
Juliusz Chroboczek authored
This avoids multiple config file entries for the same interface causing an assertion failure. Reported by Baptiste Jonglez.
-
Gabriel Kerneis authored
-
- 19 Jun, 2013 6 commits
-
-
Juliusz Chroboczek authored
-
Juliusz Chroboczek authored
-
Juliusz Chroboczek authored
-
Juliusz Chroboczek authored
Conflicts: CHANGES
-
Juliusz Chroboczek authored
It turns out that the rp_filter is only disabled if both all/rp_filter and ifname/rp_filter are set to 0. This sets and restores all of these values explicitly, which fixes mysterious issues on distributions that set rp_filter by default.
-
Juliusz Chroboczek authored
This avoids a crash when an interface is added both in the configuration file and on the command-line.
-