olsrd: add ubus ipc integration to olsrd
authorNick Hainke <vincent@systemli.org>
Sat, 15 Jan 2022 07:37:37 +0000 (08:37 +0100)
committerNick Hainke <vincent@systemli.org>
Mon, 17 Jan 2022 08:41:46 +0000 (09:41 +0100)
commitc2e138d49fa4796ab03f0eadb7b4d37aac75498a
tree12009c1defb393fa51afae8462d7c4d53439d614
parent7d07ef90fd536a7833c37a7ae348297bde0a462a
olsrd: add ubus ipc integration to olsrd

IPC integration of olsrd with OpenWrt. Allow dynamic adding and removing
of interfaces at run-time. We need to rename the avl-tree files, since
libubox also defines avl tree. Also add patch to allow meshing via
wireguard point-to-point links.

The ubus interface offers following functions:
  - add_inteface '{"ifname":"wg_51820"}'
  - del_inteface '{"ifname":"wg_51820"}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 0bffe620b441c039780d4336a15c8ed4f2ebbbf4)
olsrd/Makefile
olsrd/patches/100-rename-avl-to-olsrd_avl.patch [new file with mode: 0644]
olsrd/patches/101-unix-fix-meshing-with-wireguard-point-to-point-interfaces.patch [new file with mode: 0644]
olsrd/patches/600-add-ubus-support.patch [new file with mode: 0644]
olsrd/src/src/ubus.c [new file with mode: 0644]
olsrd/src/src/ubus.h [new file with mode: 0644]