-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Parse IPv6 scope IDs. #923
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
There are some minor comments, and also the unit test is missing, can address this?
I'll make the requested changes. Though I have no clue about Windows. Maybe some can check if if_nametoindex exists on windows. |
It is not clear to me why the AppVeyor build fails |
It is not clear to me why the AppVeyor build fails
It is not your fault, will take a look
|
((ev_uint32_t)in6.s6_addr[j*4+1] << 16) | | ||
((ev_uint32_t)in6.s6_addr[j*4+2] << 8) | | ||
((ev_uint32_t)in6.s6_addr[j*4+3]); | ||
if (u != ent->res[j]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for now, but should be adjusted later
Looks like the appveyor issue, after restarting the build everything is fine. |
It seems that including <iphlpapi.h> doesn't result in a prototype for if_nametoindex. Maybe somebody with windows can check. |
Ah, not only no prototype, but the function doesn't exist at all. |
I'm done with this. I don't want to make random changes for windows. Somebody else can sort this out. I'll drop the pull request soon. |
@PhilipHomburg , I have Windows machine, I'll check it, please keep going. |
You should include
in Makefile.am line 185
|
Just send me a diff, or create a new pull request with that change |
@ygj6 any news on this one? (you can simply pull the changes from this PR and fix win32 support) |
Applied, thanks! (@PhilipHomburg I force pushed rebased changes to your repo to force github merge detection) |
Fixes: 9fecb59 ("Parse IPv6 scope IDs.") Refs: libevent#923
Fixes: 9fecb59 ("Parse IPv6 scope IDs.") Refs: libevent#923 (cherry picked from commit 1495f8b)
It is required since libevent#923.
It is required since libevent#923.
It has been required since libevent#923 at least for the `if_nametoindex` call.
It has been required since #923 at least for the `if_nametoindex` call.
I added support for parsing scope IDs in IPv6 literals. This is required to support link local addresses in /etc/resolv.conf