diff options
author | StackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com> | 2022-11-21 20:26:16 +0300 |
---|---|---|
committer | StackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com> | 2022-11-21 21:13:59 +0300 |
commit | 38597988f4d62357d0670fe0d3f4134b291be030 (patch) | |
tree | 86d34ce70ed30a09287be5189f658ef837cd4a32 /src/sys | |
parent | 79f04fb3a34a4af6d8bdcc5807d63a980f483f94 (diff) | |
download | nix-38597988f4d62357d0670fe0d3f4134b291be030.zip |
Added `SockProtocol::Raw = libc::IPPROTO_RAW` for raw sockets
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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"))] |