From 38597988f4d62357d0670fe0d3f4134b291be030 Mon Sep 17 00:00:00 2001 From: StackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com> Date: Mon, 21 Nov 2022 20:26:16 +0300 Subject: Added `SockProtocol::Raw = libc::IPPROTO_RAW` for raw sockets --- src/sys/socket/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys') diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index af19c52d..37a4037c 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -118,6 +118,8 @@ pub enum SockProtocol { Tcp = libc::IPPROTO_TCP, /// UDP protocol ([ip(7)](https://man7.org/linux/man-pages/man7/ip.7.html)) Udp = libc::IPPROTO_UDP, + /// Raw sockets ([raw(7)](https://man7.org/linux/man-pages/man7/raw.7.html)) + Raw = libc::IPPROTO_RAW, /// Allows applications and other KEXTs to be notified when certain kernel events occur /// ([ref](https://developer.apple.com/library/content/documentation/Darwin/Conceptual/NKEConceptual/control/control.html)) #[cfg(any(target_os = "ios", target_os = "macos"))] -- cgit v1.2.3