We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83cf04 commit 272c6cfCopy full SHA for 272c6cf
src/socket.rs
@@ -1408,7 +1408,7 @@ impl Socket {
1408
setsockopt(
1409
self.as_raw(),
1410
sys::IPPROTO_IP,
1411
- libc::IPV6_MULTICAST_ALL,
+ libc::IP_MULTICAST_ALL,
1412
all as c_int,
1413
)
1414
}
tests/socket.rs
@@ -1467,6 +1467,11 @@ test!(
1467
set_tcp_user_timeout(Some(Duration::from_secs(10)))
1468
);
1469
1470
+#[cfg(all(feature = "all", target_os = "linux"))]
1471
+test!(IPv4 multicast_all_v4, set_multicast_all_v4(false));
1472
1473
+test!(IPv6 multicast_all_v6, set_multicast_all_v6(false));
1474
+
1475
#[test]
1476
#[cfg(not(any(
1477
target_os = "haiku",
0 commit comments