-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Milestone
Description
Calling bind_device_by_index results in errno 22 if the socket is bound to an IPV6 address.
I'm using this code instead:
unsafe { libc::setsockopt(socket.as_raw_fd(), libc::IPPROTO_IPV6, libc::IPV6_BOUND_IF, &index as *const u32 as *const libc::c_void, std::mem::size_of::<u32>() as u32) } ;
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels