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 70781c6 commit 83f0e89Copy full SHA for 83f0e89
test/sys/test_sockopt.rs
@@ -242,6 +242,7 @@ fn test_so_type_unknown() {
242
use nix::errno::Errno;
243
244
require_capability!("test_so_type", CAP_NET_RAW);
245
+ #[allow(deprecated)]
246
let raw_fd = unsafe { libc::socket(libc::AF_PACKET, libc::SOCK_PACKET, 0) };
247
assert!(raw_fd >= 0, "Error opening socket: {}", nix::Error::last());
248
let sockfd = unsafe { OwnedFd::from_raw_fd(raw_fd) };
0 commit comments