1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-15 19:54:07 +02:00
Commit Graph

21 Commits

Author SHA1 Message Date
Linus Lüssing
49604ce507 respondd: add provider "respondd-providers" to list registrations
Add an internal respondd provider "respondd-providers" which allows a
respondd querier to query which providers are registered on a node.
Example output:

{
	"respondd-providers": [
		"neighbours",
		"nodeinfo",
		"statistics",
		"statistics-extended"
	]
}

This can be useful for providers which are known to be bulky, where the
actual data is better queried via HTTP/TCP instead. But where such a
provider is only present on a few nodes, so you'd want to avoid
trying each node via HTTP.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2022-03-22 02:06:38 +01:00
Matthias Schiffer
9a364fb8d0
respondd: fix crash caused by division by zero
Fixes: 31eb441db1 ("respondd: make delays specific for group and interface")
2019-05-01 16:17:14 +02:00
Matthias Schiffer
cf3e8d1a08
respondd: exit on unknown command line parameters 2019-04-21 19:29:44 +02:00
Matthias Schiffer
0f57108e3d
respondd: make all internal functions static 2019-04-21 19:29:44 +02:00
Matthias Schiffer
593b2c6266
respondd: fix incorrect use of strncpy
Fortunately, the destination buffer is always big enough, so no buffer
overflow can happen. Use memcpy instead of strncpy to make this explicit
(and slightly more efficient).
2019-04-21 19:29:44 +02:00
Matthias Schiffer
31eb441db1
respondd: make delays specific for group and interface
Previously, delays were specific for interfaces, but not for the group
address. This behaviour was confusing when the same interface was passed
for multiple group addresses. Fix by keeping track of both groups and
interfaces.
2019-04-21 19:29:44 +02:00
Matthias Schiffer
2d89e972d9
respondd: fix inet_pton() error message
inet_pton() doesn't set errno on regular parse errors, so using perror()
doesn't make sense (and we avoid a confusing "Success" message).
2019-04-21 19:08:22 +02:00
Matthias Schiffer
a906d2447f
respondd: miniz: fix -Wmisleading-indentation warning 2019-04-21 17:30:57 +02:00
lemoer
50874ee142 respondd: add documentation for some protocol related functions (#194) 2018-09-17 22:43:51 +02:00
Matthias Schiffer
31e2000604
treewide: remove redundant definitions from package Makefiles 2018-03-07 20:51:48 +01:00
Thomas Weißschuh
706bef6245 respondd: add diagnostics about failed module load (#171) 2017-09-28 12:35:20 +02:00
Matthias Schiffer
5c25ed888f respondd: nicer error messages 2016-12-23 00:24:02 +01:00
Jan-Philipp Litza
5ab6385331 respondd: Accept multiple data provider directories 2016-12-09 10:13:27 +01:00
lemoer
e7fbcf75a9 respondd: add support for delayed replies to multicast requests (#144) 2016-12-06 19:46:40 +01:00
Matthias Schiffer
be44ede736
Update dependencies on now builtin kmods (and add missing @IPV6) 2016-09-24 01:59:45 +02:00
yanosz
fed34e05cd
respondd: extend README 2016-06-21 18:49:21 +02:00
Matthias Schiffer
63376e23c8
respondd: don't listen on IPv4
Our firewall rules don't expect respondd to work for IPv4.
2016-05-16 02:16:17 +02:00
Philzen
ebe9de45de Reveal unintentionally hidden text 2016-02-16 05:13:05 +01:00
Matthias Schiffer
fd06c7d67d respondd: use C modules instead of Lua to provide data 2016-02-02 06:36:39 +01:00
Matthias Schiffer
c1aa8b847b respondd: add monotonic timestamp to lua calls to allow caching 2015-12-12 18:01:24 +01:00
Matthias Schiffer
e8ee21d116 Add new package respondd, a Lua-based version of gluon-announced 2015-04-23 15:07:26 +02:00