I am trying to use Boost for some IPv6 and multicast network communications. I need to build an IPv6 multicast socket that uses a specific network interface index.
I managed to find the correct multicast option to set the network interface index to boost / asio / ip / detail / socket_option.hpp: explicit multicast_request (const boost :: asio :: ip :: address_v6 & multicast_address, unsigned long network_interface = 0)
The problem is that I do not know how to find the correct value for the "network_interface" parameter. Is there a way to get the value of network_interface using a local IPv6 address that I can provide? I looked through the documentation and examples, but found nothing.
- Dylan
source
share