diff options
| author | Sven Eckelmann <sven@narfation.org> | 2020-08-25 20:07:05 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2020-08-25 20:09:34 +0200 |
| commit | c201b00922f0ee92b146bb18d15d8456fbff5ec7 (patch) | |
| tree | 1bfa21f2246bce70e796142571ea3fe25733d575 /batman-adv/files/lib | |
| parent | 4e7401602b1754a7c180532a3b960abd6542f16f (diff) | |
batman-adv: upgrade package to latest release 2020.3
* support latest kernels (4.4 - 5.9)
* coding style cleanups and refactoring
* introduce a configurable per interface hop penalty
* bugs squashed:
- avoid uninitialized chaddr when handling DHCP
- fix own OGMv2 check in aggregation receive handling
- fix "NOHZ: local_softirq_pending 08" warnings caused by BLA
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'batman-adv/files/lib')
| -rwxr-xr-x | batman-adv/files/lib/netifd/proto/batadv_hardif.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/batman-adv/files/lib/netifd/proto/batadv_hardif.sh b/batman-adv/files/lib/netifd/proto/batadv_hardif.sh index 6eb597f..b2f87dd 100755 --- a/batman-adv/files/lib/netifd/proto/batadv_hardif.sh +++ b/batman-adv/files/lib/netifd/proto/batadv_hardif.sh @@ -8,6 +8,7 @@ proto_batadv_hardif_init_config() { proto_config_add_int 'elp_interval' + proto_config_add_int 'hop_penalty' proto_config_add_string "master" proto_config_add_string 'throughput_override' } @@ -17,10 +18,12 @@ proto_batadv_hardif_setup() { local iface="$2" local elp_interval + local hop_penalty local master local throughput_override json_get_vars elp_interval + json_get_vars hop_penalty json_get_vars master json_get_vars throughput_override @@ -29,6 +32,7 @@ proto_batadv_hardif_setup() { batctl meshif "$master" interface -M add "$iface" [ -n "$elp_interval" ] && batctl hardif "$iface" elp_interval "$elp_interval" + [ -n "$hop_penalty" ] && batctl hardif "$iface" hop_penalty "$hop_penalty" [ -n "$throughput_override" ] && batctl hardif "$iface" throughput_override "$throughput_override" proto_init_update "$iface" 1 |
