Attempting to send a Tins::IPv6 PDU with a link-scope destination address will result in a "Network is unreachable" error (error code 101).
From the RFC2553 document section 3.3, it states
The sin6_scope_id field is a 32-bit integer that identifies a set of interfaces
as appropriate for the scope of the address carried in the sin6_addr field.
For a link scope sin6_addr, sin6_scope_id would be an interface index.
It understand this might be argued against since we're allowing a non-link layer PDU to be sent through a specified interface, but overall I think this should be up to the user to decide if a packet should be sent through a specified interface or allow the kernel to do so. Maybe that will be another pull request.
Attempting to send a
Tins::IPv6
PDU with a link-scope destination address will result in a "Network is unreachable" error (error code 101). From the RFC2553 document section 3.3, it statesIt understand this might be argued against since we're allowing a non-link layer PDU to be sent through a specified interface, but overall I think this should be up to the user to decide if a packet should be sent through a specified interface or allow the kernel to do so. Maybe that will be another pull request.