From c2c05312a0c145a6b0f474c96d1ffcf87449cb53 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 15 Feb 2021 19:27:35 +0100 Subject: [PATCH] Increase maximum IGMP memberships (#1222) Currently Linux has a limit of IGMP memberships of 20. When trying to add membership to more than that, Linux fails with: OSError: [Errno 105] No buffer space available Allowing more memberships should not really be problematic as memory is allocated dynamically when membership is actually added. However, there is a protocol limit of how many memberships a host can be in. The number of memberships needs to fit in a single group report datagram of 64kB. In total 5459 group records fit in a datagram, but due to IP header options this might be slightly smaller in practise. (see https://github.com/home-assistant/core/issues/45957). Use a limit of 1024, which should be plenty of headroom in both directions. Related to: https://github.com/home-assistant/core/issues/45957 --- buildroot-external/rootfs-overlay/etc/sysctl.d/20-network.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 buildroot-external/rootfs-overlay/etc/sysctl.d/20-network.conf diff --git a/buildroot-external/rootfs-overlay/etc/sysctl.d/20-network.conf b/buildroot-external/rootfs-overlay/etc/sysctl.d/20-network.conf new file mode 100644 index 000000000..ada27ebe3 --- /dev/null +++ b/buildroot-external/rootfs-overlay/etc/sysctl.d/20-network.conf @@ -0,0 +1,3 @@ +# Since multicast is rather popular and we have many integrations running, +# more than the default of 20 memberships might be required. +net.ipv4.igmp_max_memberships = 1024