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

Multicast ipv6 addressing ff02::1%<interface> #114

Open
dcomins opened this issue Jun 7, 2018 · 9 comments
Open

Multicast ipv6 addressing ff02::1%<interface> #114

dcomins opened this issue Jun 7, 2018 · 9 comments

Comments

@dcomins
Copy link

dcomins commented Jun 7, 2018

Hi,
I have some nodes which work on ipv6 connected to my Pi, i have a python program running with Coapthon and i am able to communicating with them using their unicast ip. Therefore when i want to use multicast coap (with the addres ff02::1%fslthr0, where fslthr0 is my TUN interface) it doesnt work. Any solution? This library allows the use of an ipv6 multicast address with interface (%fslthr0)?

Note: I can ping the nodes using the all addres ff02::1%fslthr0. But if I only ping ff02::1 it doesn work, so i need to put ff02::1%fslthr0 address in coapthon.
Best
Diego C.

@Tanganelli
Copy link
Owner

Tanganelli commented Jun 7, 2018 via email

@dcomins
Copy link
Author

dcomins commented Jun 7, 2018

Yes, I ping with no problems without specifying the interface with unicast addresses. But for pinging a multicast address in ipv6 it is mandatory to specify the interface, see: https://superuser.com/questions/840767/ipv6-multicast-address-for-all-nodes-on-network

Txthings library also had problems with this multicast issue, see the second comment from "sjlongland": mwasilak/txThings#16

@dcomins
Copy link
Author

dcomins commented Jun 11, 2018

Tanganelli can you fix this issue? I think there are many people interested on it.

@Tanganelli
Copy link
Owner

Tanganelli commented Jun 12, 2018 via email

@dcomins
Copy link
Author

dcomins commented Jun 12, 2018

Ok, I really appreciate it. Thanks in advance.
Diego C.

@dcomins
Copy link
Author

dcomins commented Jul 2, 2018

Have you made some advances Tanganelli?

@Tanganelli
Copy link
Owner

Tanganelli commented Jul 2, 2018 via email

@pchwalek
Copy link

pchwalek commented Nov 27, 2019

I struggled with this issue and found the solution to be binding the socket to my interface. After doing so, multicast sending worked!! =)

(python3) in client\coap.py, for binding to the wpan0 interface, I added:
self._socket.setsockopt(socket.SOL_SOCKET, 25, str("wpan0" + '\0').encode('utf-8'))

@aslehv
Copy link

aslehv commented Mar 4, 2022

Is this solved? I am trying to multicast aswell to ff03::1 or ff02::1 :) I could not get, @pchwalek solution to work.

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

4 participants