summary refs log tree commit diff
path: root/sys_util/src/sock_ctrl_msg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sys_util/src/sock_ctrl_msg.rs')
-rw-r--r--sys_util/src/sock_ctrl_msg.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys_util/src/sock_ctrl_msg.rs b/sys_util/src/sock_ctrl_msg.rs
index 07b5d2b..a07934a 100644
--- a/sys_util/src/sock_ctrl_msg.rs
+++ b/sys_util/src/sock_ctrl_msg.rs
@@ -17,6 +17,7 @@ use libc::{
 
 use data_model::VolatileSlice;
 
+use net::UnixSeqpacket;
 use {Error, Result};
 
 // Each of the following macros performs the same function as their C counterparts. They are each
@@ -294,6 +295,11 @@ impl ScmSocket for UnixStream {
         self.as_raw_fd()
     }
 }
+impl ScmSocket for UnixSeqpacket {
+    fn socket_fd(&self) -> RawFd {
+        self.as_raw_fd()
+    }
+}
 
 /// Trait for types that can be converted into an `iovec` that can be referenced by a syscall for
 /// the lifetime of this object.