gluon/package
T-X 0da2a7c431
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>
(cherry picked from commit 531937cf6f)
2022-02-22 18:57:39 +01:00
..
gluon-alfred gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-authorized-keys gluon-authorized-keys: Force installation of gluon-lock-password 2019-07-02 12:34:55 +02:00
gluon-autoupdater gluon-autoupdater: make site.conf branch setting optional 2020-08-15 16:36:27 +02:00
gluon-client-bridge clean up old cleanup code lines (#2119) 2020-09-17 18:19:59 +02:00
gluon-config-mode-autoupdater treewide: update i18n files via i18n-scan.pl and msgmerge (#1784) 2019-11-09 01:25:33 +01:00
gluon-config-mode-contact-info gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-core gluon-config-mode-core: discard gluon-reconfigure output (#2395) 2022-02-22 18:54:53 +01:00
gluon-config-mode-domain-select gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-geo-location gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-geo-location-osm gluon-config-mode-geo-location-osm, gluon-web-osm: add support for custom tile layers (#2072) 2020-07-05 17:06:59 +02:00
gluon-config-mode-hostname gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-mesh-vpn mesh-vpn: fully abstract VPN methods 2021-05-22 06:54:23 +02:00
gluon-config-mode-outdoor gluon-config-mode-core: unconditionally run gluon-reconfigure 2021-05-15 00:03:02 +02:00
gluon-config-mode-theme gluon-config-mode-theme: add cross-browser styling for <select> elements 2020-07-03 21:53:51 +02:00
gluon-core ramips-mt76x8: add Xiaomi Mi Router 4A (100M Edition) 2021-06-22 12:07:00 +02:00
gluon-ebtables gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-ebtables-filter-multicast gluon-ebtables-filter-multicast: relax IPv6 multicast firewall rules 2021-05-01 22:36:14 +02:00
gluon-ebtables-filter-ra-dhcp treewide: move ebtables filter definitions from files to luasrc 2019-06-18 19:52:33 +02:00
gluon-ebtables-limit-arp gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-ebtables-source-filter treewide: move ebtables filter definitions from files to luasrc 2019-06-18 19:52:33 +02:00
gluon-hoodselector packages: introduce syslog function in gluon.util 2020-12-29 01:33:29 +01:00
gluon-iptables-clamp-mss-to-pmtu gluon-iptables-clamp-mss-to-pmtu: clamp mss on all mesh interfaces for all destinations to pmtu 2018-11-21 20:47:39 +01:00
gluon-l3roamd gluon-core: run firewall upgrade script after basic network setup (#2091) 2020-08-14 21:02:55 +02:00
gluon-lock-password treewide: automatically set SECTION and CATEGORY for Gluon packages 2018-04-14 00:01:04 +02:00
gluon-logging add gluon-logging package 2020-04-30 01:54:35 +02:00
gluon-mesh-babel treewide: rename local_client zone (#2115) 2020-09-13 05:24:33 +02:00
gluon-mesh-batman-adv gluon-ebtables-filter-multicast: relax IPv6 multicast firewall rules 2021-05-01 22:36:14 +02:00
gluon-mesh-vpn-core gluon-mesh-vpn-core: fix two more missing NULL checks 2021-06-21 15:34:04 +02:00
gluon-mesh-vpn-fastd mesh-vpn: fully abstract VPN methods 2021-05-22 06:54:23 +02:00
gluon-mesh-vpn-tunneldigger gluon-mesh-vpn-tunneldigger: fix Lua mesh-vpn provider module location 2021-06-21 15:33:44 +02:00
gluon-mesh-wireless-sae mesh-wireless-sae: drop unused function parameters 2021-05-02 02:20:00 +02:00
gluon-mmfd gluon-mmfd: add package (#1802) 2019-09-23 21:34:53 +02:00
gluon-neighbour-info gluon-neighbour-info: fix broken output with large results (#2322) 2022-02-22 18:57:39 +01:00
gluon-node-info treewide: automatically set SECTION and CATEGORY for Gluon packages 2018-04-14 00:01:04 +02:00
gluon-private-wifi gluon-private-wifi: add package 2021-05-02 23:25:32 +02:00
gluon-radv-filterd gluon-radv-filterd: add string.h and guard to mac.h 2020-07-02 00:17:50 +02:00
gluon-radvd gluon-reload: add missing service restarts on domain switching 2020-05-28 23:30:25 +02:00
gluon-respondd gluon-respondd: fix count_stations() arguments 2021-01-12 04:32:23 +01:00
gluon-scheduled-domain-switch gluon-scheduled-domain-switch: use gluon-switch-domain 2020-07-02 22:35:05 +02:00
gluon-setup-mode gluon-core: add gluon-switch-domain utility 2020-07-02 22:35:05 +02:00
gluon-site gluon-site: print better error message for domain code conflicts (#2098) 2020-08-15 16:11:49 +02:00
gluon-status-page gluon-status-page: split bwlimit into two lines (#2371) 2022-02-03 17:08:07 +01:00
gluon-status-page-mesh-batman-adv gluon-status-page-mesh-batman-adv: Save if metrics chose neighbor as own best nexthop 2019-04-09 01:31:51 +02:00
gluon-wan-dnsmasq gluon-wan-dnsmasq: read interfaces to update from flag-files (#2060) 2020-06-30 16:37:09 +02:00
gluon-web gluon-web: prohibit cross-origin POST 2022-02-03 17:08:07 +01:00
gluon-web-admin gluon-web-*: remove unused "token" form value 2022-02-03 17:08:07 +01:00
gluon-web-autoupdater gluon-web-autoupdater: use human-readable names as branch labels, sort by label 2020-04-26 15:31:59 +02:00
gluon-web-logging treewide: update i18n files via i18n-scan.pl and msgmerge (#1784) 2019-11-09 01:25:33 +01:00
gluon-web-mesh-vpn-fastd gluon-web-*: remove non-existing CSS classes 2020-07-02 23:43:23 +02:00
gluon-web-model gluon-web-*: remove unused "token" form value 2022-02-03 17:08:07 +01:00
gluon-web-network gluon-web-network: fix variable shadowing 2019-08-13 17:49:02 +02:00
gluon-web-node-role gluon-web-node-role: fix node role list 2019-11-05 20:05:16 +01:00
gluon-web-osm gluon-web-osm: Fix " rendering in attribution with CDATA tag (#2398) 2022-02-22 18:54:53 +01:00
gluon-web-private-wifi gluon-private-wifi: add package 2021-05-02 23:25:32 +02:00
gluon-web-wifi-config gluon-web: don't display outdoor mode on preserve_channels (#2074) 2020-07-05 19:05:27 +02:00
gluon-wireless-encryption wireless-encryption mesh-wireless-sae: depend on OpenSSL daemons 2020-12-16 00:52:27 +01:00
libbatadv treewide: remove redundant definitions from package Makefiles 2018-03-07 21:23:41 +01:00
libgluonutil libgluonutil: free getline 2021-05-08 20:35:24 +02:00
features features: fix handling of logical expressions 2020-08-28 22:27:38 +02:00
gluon.mk build: make GluonSrcDiet simpler and more robust (#2033) 2020-06-04 22:53:14 +02:00