From db2057f60e9b55202fc3caa828fef8a8bc102166 Mon Sep 17 00:00:00 2001 From: Pinwhell <60289470+pinwhell@users.noreply.github.com> Date: Thu, 15 Jan 2026 23:10:16 -0400 Subject: [PATCH] Clarify IPv4 vs IPv6 semantics of multicast::outbound_interface Clarify outbound_interface IPv4 vs IPv6 semantics #1690 --- include/asio/ip/multicast.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asio/ip/multicast.hpp b/include/asio/ip/multicast.hpp index 530189b0d2..0b59e829d3 100644 --- a/include/asio/ip/multicast.hpp +++ b/include/asio/ip/multicast.hpp @@ -85,6 +85,10 @@ typedef asio::ip::detail::socket_option::multicast_request< /** * Implements the IPPROTO_IP/IP_MULTICAST_IF socket option. * + * For IPv4, the outbound interface may be specified using an IPv4 address. + * For IPv6, an interface index must be used, since an IPv6 address does not + * uniquely identify a network interface. + * * @par Examples * Setting the option: * @code