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

net: implement multicast network interface API on OpenBSD #9669

Open
mikioh opened this issue Jan 23, 2015 · 3 comments
Open

net: implement multicast network interface API on OpenBSD #9669

mikioh opened this issue Jan 23, 2015 · 3 comments

Comments

@mikioh
Copy link
Contributor

mikioh commented Jan 23, 2015

See https://github.com/golang/go/blob/master/src/net/interface_openbsd.go.

@mdempsky
Copy link
Contributor

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.

@mikioh
Copy link
Contributor Author

mikioh commented Feb 17, 2015

ifnet's if_maddrlist field

yup.

no system calls

yup, hope openbsd guys have a plan.

SIOCGIFCONF

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.

@mdempsky
Copy link
Contributor

yup, hope openbsd guys have a plan.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants