summaryrefslogtreecommitdiff
path: root/src/sys/socket/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r--src/sys/socket/mod.rs18
1 files changed, 0 insertions, 18 deletions
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 {