Skip to content

Commit

Permalink
Fix rust-lang#485 with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mzachar committed Dec 18, 2023
1 parent d83cf04 commit ec06dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ impl Socket {
setsockopt(
self.as_raw(),
sys::IPPROTO_IP,
libc::IPV6_MULTICAST_ALL,
libc::IP_MULTICAST_ALL,
all as c_int,
)
}
Expand Down
5 changes: 5 additions & 0 deletions tests/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,11 @@ test!(
set_tcp_user_timeout(Some(Duration::from_secs(10)))
);

#[cfg(all(feature = "all", target_os = "linux"))]
test!(IPv4 multicast_all_v4, set_multicast_all_v4(false));
#[cfg(all(feature = "all", target_os = "linux"))]
test!(IPv6 multicast_all_v6, set_multicast_all_v6(false));

#[test]
#[cfg(not(any(
target_os = "haiku",
Expand Down

0 comments on commit ec06dfc

Please sign in to comment.