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.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index fe88b376..5922f135 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -31,6 +31,9 @@ pub use self::addr::{
Ipv4Addr,
Ipv6Addr,
};
+#[cfg(any(target_os = "linux", target_os = "android"))]
+pub use ::sys::socket::addr::netlink::NetlinkAddr;
+
pub use libc::{
in_addr,
in6_addr,
@@ -538,6 +541,8 @@ pub enum SockLevel {
Ip = IPPROTO_IP,
Ipv6 = IPPROTO_IPV6,
Udp = IPPROTO_UDP,
+#[cfg(any(target_os = "linux", target_os = "android"))]
+ Netlink = SOL_NETLINK,
}
/// Represents a socket option that can be accessed or set. Used as an argument