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>
Sun, 16 Jan 2022 09:24:19 +0000 (10:24 +0100)
commit0bffe620b441c039780d4336a15c8ed4f2ebbbf4
tree78a40de02d1e635b3d5e43426bff97647f7e2cda
parent817240b07c7158c72de427051eb9bae1c39b3abe
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>
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]