You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I don't think this is possible to do currently on OpenBSD. The list of multicast addresses is stored in each interface's struct ifnet's if_maddrlist field, but the only references to this are for adding/removing multicast addresses. There are no system calls for retrieving the active list of multicast addresses.
I suspect the most appropriate solution would be to mimic SIOCGIFCONF, the ioctl used for retrieving the list of unicast addresses on an interface. It probably wouldn't be difficult to implement if someone has the time/motivation to look into it.
or, reconstructing per-interface multicast address lists by using routing entries, as a compromise until they provide system calls. once https://go-review.googlesource.com/#/c/4330/ lands, perhaps it might not be so tough.
Well, I'm an OpenBSD developer... just not a very active one lately. :(
I doubt any OpenBSD developers have a plan for this currently, but that doesn't mean it can't be fixed if someone wants to propose an API and/or write a patch.
reconstructing per-interface multicast address lists by using routing entries
Hm, that might work. I haven't used multicast on OpenBSD in a while though, so I'd have to play around with it.
See https://github.com/golang/go/blob/master/src/net/interface_openbsd.go.
The text was updated successfully, but these errors were encountered: