-
Notifications
You must be signed in to change notification settings - Fork 43
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
IPv6 Multicast #16
Comments
Also worth considering, is how to specify which interface to send a multicast message on. For example, I'd like to send a message to Without the |
For what it's worth… I've just spent the last 12 hours trying to get multicast working… this was the result:
and this is the code
run under Python 2.7 with Twisted 16.2.0 (Debian Jessie). https://stackoverflow.com/questions/36034258/ipv6-link-local-multicast-on-twisted seems to suggest Twisted itself has a lot missing. |
Did you find a solution to multicast link-local ipv6 @sjlongland ? |
@dcomins I did… sort of… I re-wrote my application in NodeJS using the |
This issue was tested on IPv6, but it (probably) applies to IPv4 as well.
When sending a request to an IPv6 multicast address, IMO there are two aspects that need to be updated:
resetUnrecognized()
shouldn't be sent.Message
should have attl
field which would set a socket option beforesendMessage()
, i.e.:sock = self.protocol.transport.getHandle()
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, request.ttl) # IPv4
sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_HOPS, request.ttl) # IPv6
self.protocol.sendMessage(request)
The text was updated successfully, but these errors were encountered: