gluon/package/gluon-neighbour-info
T-X 531937cf6f
gluon-neighbour-info: fix broken output with large results (#2322)
Currently a buffer with a fixed size of 8192 bytes is used. However the
result can potentially be larger, which leads to a truncated JSON
output on stdout. UDP packets, without compression and with IP
fragmentation, can be up to 64KiB large.

Instead of using a fixed size buffer on the stack ask the kernel first
about the size of the UDP data and allocate a buffer of appropriate size
on the heap before receiving the UDP data.

The issue was observed with a custom respondd provider.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2021-10-04 21:23:29 +02:00
..
luasrc/lib/gluon/upgrade gluon-neighbour-info: allow respondd replies on mesh and wan interface 2017-11-25 23:31:23 +01:00
src gluon-neighbour-info: fix broken output with large results (#2322) 2021-10-04 21:23:29 +02:00
Makefile treewide: automatically set SECTION and CATEGORY for Gluon packages 2018-04-14 00:01:04 +02:00