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

join multicast group for routers #2

Open
thtomate opened this issue Dec 2, 2019 · 1 comment
Open

join multicast group for routers #2

thtomate opened this issue Dec 2, 2019 · 1 comment

Comments

@thtomate
Copy link
Contributor

thtomate commented Dec 2, 2019

To receive router solications you need to be in the multicast group ff02::2

@thtomate
Copy link
Contributor Author

thtomate commented Dec 3, 2019

I tried the following. It works, but I'm uncertain regarding the interface and UDPAddr.

group := net.ParseIP("ff02::2")
err = pc.JoinGroup(nil, &net.UDPAddr{IP: group})
if err != nil {
…

EDIT: this uses some interface, if your node has multiple interface, this may be unusable

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

1 participant