Skip to content

Commit 72e6aa7

Browse files
committed
Add IPV6_MULTICAST_LOOP socket option
This exposes the IPv6 version of the IP_MULTICAST_LOOP socket option.
1 parent 6619d8d commit 72e6aa7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,17 @@ sockopt_impl!(
479479
libc::IP_MULTICAST_LOOP,
480480
bool
481481
);
482+
#[cfg(feature = "net")]
483+
sockopt_impl!(
484+
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
485+
/// Set or read a boolean integer argument that determines whether sent
486+
/// multicast packets should be looped back to the local sockets.
487+
Ipv6MulticastLoop,
488+
Both,
489+
libc::IPPROTO_IPV6,
490+
libc::IPV6_MULTICAST_LOOP,
491+
bool
492+
);
482493
#[cfg(target_os = "linux")]
483494
#[cfg(feature = "net")]
484495
sockopt_impl!(

0 commit comments

Comments
 (0)