diff options
author | Alan Somers <asomers@gmail.com> | 2020-12-14 20:45:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 20:45:36 -0700 |
commit | 0fd17fc4e574c1b245c95c2fb878785e94316591 (patch) | |
tree | 49fec02059acdf43b9ac663ada2795ab8e1fbe9b | |
parent | b1b162fe1831c58243487351d933e5407b821fe7 (diff) | |
parent | d3378a6d1ab50447191cc757c1f5b42f3f723a1c (diff) | |
download | nix-0fd17fc4e574c1b245c95c2fb878785e94316591.zip |
Merge pull request #1362 from asomers/no_socklevel
Remove SockLevel
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | src/sys/socket/mod.rs | 18 |
2 files changed, 3 insertions, 18 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2201504d..719d84dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Removed +- Removed `SockLevel`, which hasn't been used for a few years + (#[1362](https://github.com/nix-rust/nix/pull/1362)) + ## [0.19.1] - 28 November 2020 ### Fixed - Fixed bugs in `recvmmsg`. diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index a4f599c1..38b910f1 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -1576,24 +1576,6 @@ pub fn send(fd: RawFd, buf: &[u8], flags: MsgFlags) -> Result<usize> { * */ -/// The protocol level at which to get / set socket options. Used as an -/// argument to `getsockopt` and `setsockopt`. -/// -/// [Further reading](http://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html) -#[repr(i32)] -#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] -pub enum SockLevel { - Socket = libc::SOL_SOCKET, - Tcp = libc::IPPROTO_TCP, - Ip = libc::IPPROTO_IP, - Ipv6 = libc::IPPROTO_IPV6, - Udp = libc::IPPROTO_UDP, - #[cfg(any(target_os = "android", target_os = "linux"))] - Netlink = libc::SOL_NETLINK, - #[cfg(any(target_os = "android", target_os = "linux"))] - Alg = libc::SOL_ALG, -} - /// Represents a socket option that can be accessed or set. Used as an argument /// to `getsockopt` pub trait GetSockOpt : Copy { |