Christof Schulze
1db3c8b40b
gluon-mesh-babel: respondd: reduce load
...
* open babel socket in its own event loop, allowing to monitor instead of dump
* keep state from monitor in json object, providing that to clients on
network on demand
* do not parse babel routes, instead use netlink to obtain nexthop
babeld still does not support limiting the data on the socket by object. When
that is merged, the load can be further reduced by limiting to neighbour
changes with a small change.
2020-01-20 22:18:25 +01:00
Matthias Schiffer
d3d2204e1a
Merge pull request #1879 from freifunk-gluon/respondd-cleanup
...
gluon-mesh-* respondd cleanup (part 1?)
2020-01-17 21:50:32 +01:00
Christof Schulze
d5b08fe6c9
gluon-mesh-babel: depend on gluon-mmfd
2019-11-24 12:31:04 +01:00
Christof Schulze
2389679380
gluon-mesh-babel: use babel 1.9.0 feature to set pref-src on installed routes
2019-11-24 12:31:04 +01:00
Matthias Schiffer
0f1fa243f7
Move common code from gluon-mesh-babel and -batman-adv respondd providers to gluon-respondd
...
In addition this PR contains:
- split of gluon-respondd provider into multiple source files
- minor additional cleanups in gluon-mesh-babel respondd provider
(untested, as the babel respondd provider already doesn't compile prior
to these changes...)
2019-11-24 12:04:58 +01:00
Matthias Schiffer
f34b302b22
gluon-mesh-babel: remove explicit ubus socket specification, convert timeout to expected units
2019-11-24 12:04:58 +01:00
Matthias Schiffer
abf46c5f42
gluon-mesh-babel: fix compilation of respondd provider
...
Adjust for changed libbabelhelper API.
2019-11-23 23:36:33 +01:00
Christof Schulze
6d64057536
gluon-mesh-babel: neighbours-babel: adjust to libbabelhelper interface
...
specify command 'dump' for now until babeld supports filtering
2019-09-29 22:44:39 +02:00
Christof Schulze
33fb58bbf9
gluon-mesh-babel: getnumber() allocate sufficient memory including \0 byte
...
increase size of path by 1 to be able to fit the full path including trailing \0 byte into array
2019-09-29 22:44:39 +02:00
Christof Schulze
a3fd203e13
gluon-mesh-babel: add dependency: gluon-l3roamd
...
gluon-mesh-babel conigures babeld and thus the mesh. This mesh is only usable
with routes to the clients which are discovered by l3roamd.
2019-09-14 00:32:55 +02:00
Christof Schulze
d5a4f4fd8c
gluon-mesh-babel: distribute routes to 2000::/3
2019-09-14 00:32:55 +02:00
bobcanthelpyou
4249d65af7
treewide: fix luacheck warnings
2019-06-16 22:51:53 +02:00
Christof Schulze
8c058af89d
gluon-mesh-babel: remove broken log-file option from config
...
log-file /dev/stderr is broken for babeld as it eats log messages for debug log.
This commit gets rid of the option. This allows -d N to be used as babeld command
line option.
2018-12-05 00:21:33 +01:00
bobcanthelpyou
f3fa17d0f7
gluon-mesh-babel: Variable 'uret' is reassigned a value before the old one has been used.
2018-11-29 23:57:06 +01:00
bobcanthelpyou
62f06c1b16
gluon-mesh-babel: Unsigned variable 'total' can't be negative
2018-11-29 23:57:06 +01:00
bobcanthelpyou
083b7ef675
gluon-mesh-babel: 'buf' nulled but not freed upon failure
2018-11-29 23:57:06 +01:00
Christof Schulze
e5b238e04a
gluon-mesh-babel: exit with error if unable to connect to babeld
2018-11-26 01:20:31 +01:00
Christof Schulze
171c293ebe
gluon-core, gluon-mesh-babel: move lua functions that generate ll-addresses from a mac into gluon-core
2018-11-21 20:56:35 +01:00
Christof Schulze
c23e6e4b53
gluon-mesh-babel: babel-respond: stop relying on mac addresses and instead obtain ll-address from nic
2018-11-21 20:56:35 +01:00
Christof Schulze
bd96bd4024
gluon-mesh-babel: explicitly specify the use of the busybox netcat
2018-11-21 20:56:35 +01:00
Matthias Schiffer
6d4d4792d5
gluon-mesh-*: do not count wifi clients/neighbours inactive for more than 60s
2018-11-18 11:45:16 +01:00
Matthias Schiffer
af9c1f7e9f
gluon-mesh-babel: fix respondd provider build/install
...
Rename to respondd.c / respondd.so, gluon.mk expects these names. This way
we can remove the install code. The installed filename is changed to
gluon-mesh-babel.so, bringing it in line with out common naming scheme.
2018-11-17 19:45:18 +01:00
Christof Schulze
0f9ab5e306
gluon-mesh-babel: add new package
2018-08-02 00:58:51 +02:00