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 10:32:55 +0000 (12:32 +0200)
commita618159d33e02e9a295388e605447993eca11e52
treeb6f5c3dcd9120f48c74efb536b4c0f3134d30fd6
parente3c68429239f77c895b32502e2609df8b72c6caa
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>
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