Closed vdorr closed 6 years ago
Thanks. btw. How did you get this to be relevant? Are you in many groups, or are there some rather spammy groups?
The latter. I had subscribed eRTNLGRP_LINK, eRTNLGRP_IPV4_IFADDR and eRTNLGRP_NEIGH, the problematic seem to be _NEIGH and the trigger is ping to all IP addresses in one of subnets (despite only few addresses being alive). Increasing buffer using setsockopt seemed to have no effect. It stopped happening when i migrated to new machine, however, i want to have this at hand.
Adds leaveMulticastGroup function. Netlink sockets sometimes get overwhelmed and reading then causes exception (ENOBUF errno), leaveMulticastGroup allows to leave group and revert to polling.