Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRT_ADD_MEMBERSHIP failed; Errno(105): No buffer space available #30

Closed
sandersaares opened this issue Apr 23, 2018 · 3 comments
Closed

Comments

@sandersaares
Copy link

I am attempting to use igmpproxy on Ubuntu 18.04 beta and am proxying about 40 groups. Some of these groups are failing to be forwarded, while others work fine.

Igpproxy is installed using "apt install igmpproxy". In the igmpproxy verbose logs, I see the following:

RECV V2 member report from 172.31.250.26 to 239.1.1.25
Inserted route table entry for 239.1.1.25 on VIF #1
joinMcGroup: 239.1.1.25 on eth0
MRT_ADD_MEMBERSHIP failed; Errno(105): No buffer space available

My configuration file is:

phyint eth0 upstream altnet 192.168.50.0/24
phyint br-a7492103597a downstream
@pali
Copy link
Owner

pali commented Apr 23, 2018

MRT_ADD_MEMBERSHIP failed; Errno(105): No buffer space available

Maybe you have too small limit for maximal membership?
Check it /sbin/sysctl net.ipv4.igmp_max_memberships

@sandersaares
Copy link
Author

I confirm that changing this parameter corrects the issue. Thanks for the hint - I had no idea this setting existed!

I would suggest adding a note to the documentation about this or printing a suitable "check igmp_max_memberships" log entry to explain the likely cause.

pali added a commit that referenced this issue Feb 26, 2020
Also on Linux show hint how to increase maximum number of multicast groups.

Fixes: #30
@pali
Copy link
Owner

pali commented Feb 26, 2020

Ok, I added sysctl hint to log messages for Linux systems.

mtremer pushed a commit to ipfire/ipfire-2.x that referenced this issue Jan 2, 2022
- Update from 0.2.1 to 0.3
- Update of rootfile not required
- Changelog
   2021-01-04 18:40:01 +0100  Pali Rohár <pali.rohar@gmail.com>
	* Release version 0.3
   2020-09-05 13:52:50 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Remove duplicate code in mcgroup.c file
           Existing functionality is provided by k_join and k_leave functions.
   2020-09-05 13:07:38 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Fix initialization and deinitialization of mrouter socket
           Ensure that uninitialized socket is invalid (-1) and not stdin (0).
   2020-09-05 13:07:00 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Use main mrouter socket also for sending join/leave messages to upstream router
           There is no need to open additional UDP socket which is used just for calling
	    IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP setsockopt. Main mrouter socket is can
	    be used for these operations too.
   2020-05-20 09:59:11 +0200  Uglymotha <uglymotha@wizdom.nu>
	* Free BSD Compilation Patch
           On FreeBSD compilation failed due to missing includes in os-freebsd.h.
            This was causing errors about undefined structs and types in missing includes.
            Also defines __BSD_VISIBLE due to FreeBSD not providing u_int, u_long etc
            in a default _POSIX_C_SOURCE environment.
           Fixes: pali/igmpproxy#68
   2020-05-08 22:54:06 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Remove MAX_MC_VIFS macro
           Its value is same as MAXVIFS, so use MAXVIFS instead.
   2020-03-06 11:51:21 +0100  Pali Rohár <pali.rohar@gmail.com>
	* Improve downstream host tracking for quickleave mode
           Use bit based per multicast route hash table for tracking downstream hosts.
	   For hasing function is used 32bit MurmurHash3 with pseudorandom seed and
	   size of hash table can be configured via a new "hashtablesize" token in
	   config file. Default size of hash table is 32 bytes, so it can store
	   approximatelly 128 hosts which is half of /24 subnet. For home networks
	   this should be sane default value.
	  Fixes: pali/igmpproxy#57
   2020-02-26 20:27:08 +0100  Pali Rohár <pali.rohar@gmail.com>
	* Show error message when IP_ADD_MEMBERSHIP fails with errno ENOBUFS
	   Also on Linux show hint how to increase maximum number of multicast groups.
	  Fixes: pali/igmpproxy#30
   2020-02-25 23:46:57 +0100  Pali Rohár <pali.rohar@gmail.com>
	* Fix gcc-7 and clang-9 on Travis
   2020-02-25 23:24:26 +0100  Pali Rohár <pali.rohar@gmail.com>
	* Update Travis config file
   2019-06-26 17:42:15 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Use AS_IF macro for C99 check in configure.ac
   2018-09-30 00:28:05 +0200  Pali Rohár <pali.rohar@gmail.com>
	* Fix makefile rules for generating AUTHORS and ChangeLog files
   2018-02-13 20:17:30 +0100  Pali Rohár <pali.rohar@gmail.com>

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants