Skip to content

Commit 0fd17fc

Browse files
authored
Merge pull request #1362 from asomers/no_socklevel
Remove SockLevel
2 parents b1b162f + d3378a6 commit 0fd17fc

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1919

2020
### Removed
2121

22+
- Removed `SockLevel`, which hasn't been used for a few years
23+
(#[1362](https://github.com/nix-rust/nix/pull/1362))
24+
2225
## [0.19.1] - 28 November 2020
2326
### Fixed
2427
- Fixed bugs in `recvmmsg`.

src/sys/socket/mod.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,24 +1576,6 @@ pub fn send(fd: RawFd, buf: &[u8], flags: MsgFlags) -> Result<usize> {
15761576
*
15771577
*/
15781578

1579-
/// The protocol level at which to get / set socket options. Used as an
1580-
/// argument to `getsockopt` and `setsockopt`.
1581-
///
1582-
/// [Further reading](http://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html)
1583-
#[repr(i32)]
1584-
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1585-
pub enum SockLevel {
1586-
Socket = libc::SOL_SOCKET,
1587-
Tcp = libc::IPPROTO_TCP,
1588-
Ip = libc::IPPROTO_IP,
1589-
Ipv6 = libc::IPPROTO_IPV6,
1590-
Udp = libc::IPPROTO_UDP,
1591-
#[cfg(any(target_os = "android", target_os = "linux"))]
1592-
Netlink = libc::SOL_NETLINK,
1593-
#[cfg(any(target_os = "android", target_os = "linux"))]
1594-
Alg = libc::SOL_ALG,
1595-
}
1596-
15971579
/// Represents a socket option that can be accessed or set. Used as an argument
15981580
/// to `getsockopt`
15991581
pub trait GetSockOpt : Copy {

0 commit comments

Comments
 (0)