-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support for IPv6 #10
Comments
Hello, |
Hi! No that's why we keep this issue open :-) IPv6 is targeted at v1.0, as hinted by the milestone on the right-hand side of this report. |
I notice that currently only one (IPv4) address is supported per interface. The interface list is indexed by interface name, which allows for only one entry per interface, |
No, it's not by design. I've noticed this too, but not had time to look into it myself. Not sure yet what's the best approach, I'm open to ideas, even half baked RFC type pull requests are sometimes easier to discuss concepts around and prototype with. |
Then I would probably for now ignore multiple IPv4 addresses on an interface, and check for interface name and address family, so that one |
Sounds like a reasonable approach in the short-term, yes. |
Well, my reasoning is that it needs separate |
@fzs yeah I've been looking at the options myself, and really wanted to improve on things in this regard. Small incremental steps in the direction of where we want to go is better than a huge overhaul. If you want to take the lead on that it would be great! @Muddasir-Shakil awesome, thank you for the input! |
@Muddasir-Shakil , I did see your PR. I was a bit puzzled because we had to do quite a bit more changes to add IPv6 support than what I saw in your commits. I'm currently going over the code an adding in our changes, keeping yours in mind. |
I am rethinking this. I would like to be able to send A and AAAA responses both over IPv4 and IPv6. So an interface that has an IPv4 and a IPv6 address should be able to be announced in one IPv4 mDNS response. I would currently still start with ignoring multiple addresses of the same address family, but add an |
Hmm, yeah that sounds like a good idea ... I think. What does avahi do? |
Uh, good question. I traced mDNS traffic from my iPhone and iPad, and saw that they will send A and AAAA records in mDNS responses over IPv4 (and IPv6). |
... should be fairly simple actually. Replace all the relevant parts of the code with
struct sockaddr_storage
The text was updated successfully, but these errors were encountered: