babeld: add add_filter function
authorNick Hainke <vincent@systemli.org>
Sun, 27 Mar 2022 22:04:19 +0000 (00:04 +0200)
committerNick Hainke <vincent@systemli.org>
Wed, 30 Mar 2022 11:00:55 +0000 (13:00 +0200)
commit9e5c8d40639391adb1593dec6a5d34da89660cb2
treef2fb42a60ef1936358910517d91ebc70be8d4784
parent0dae864cebd8613d3edc629a0d28cc13a89f0d81
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 <vincent@systemli.org>
(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