babeld: add add_filter function
authorNick Hainke <[email protected]>
Sun, 27 Mar 2022 22:04:19 +0000 (00:04 +0200)
committerNick Hainke <[email protected]>
Wed, 30 Mar 2022 10:44:35 +0000 (12:44 +0200)
commit15d83eff074a8fb0b1e4af4e7187af71e46870dd
tree2c4134c2ff0c2fd7092f5ec7dd7167c917b18914
parent7c7d11e2904494820d5c28249bff8abd46493184
babeld: add add_filter function

You can define filter functions in babeld by:

   in if eth0 metric 128

This commit adds the ubus equivalent to dynamically add filter on
runtime:

  ubus call babeld add_filter '{"ifname":"eth0", "type":"input",
                                "metric":128}'

Signed-off-by: Nick Hainke <[email protected]>
(cherry picked from commit a618159d33e02e9a295388e605447993eca11e52)
babeld/patches/000-export-add-filters-and-simplify-interface.patch [new file with mode: 0644]
babeld/patches/600-add-ubus.patch
babeld/src/ubus.c
babeld/src/ubus.h