-
Notifications
You must be signed in to change notification settings - Fork 228
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
bind_device_by_index fails on IPv6 #413
Comments
Of course as soon as I hit submit, I find out the obvious answer to my P.S.: SocketAddrV6 has a scope_id field. |
I suppose this should have been IPv4 and IPv6 specific methods. @pinkisemils you contributed the code, any thoughts? |
Yes, there should be an analogue IPv6 functions that would use |
We should probably add |
Yes. I dropped the ball on this due to my immune system dropping the ball on me. I'll add a small PR tomorrow. |
Calling
bind_device_by_index
results in errno 22 if the socket is bound to an IPV6 address.I'm using this code instead:
device_index
has the same problem.P.S. if somebody knows a better way of specifying a link-local scope ID when binding to an IPV6 socket, that would help me although the bug I opened is still valid.
The text was updated successfully, but these errors were encountered: