summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/socket.rs b/src/sys/socket.rs
index 4a5aea3c..cadb21ac 100644
--- a/src/sys/socket.rs
+++ b/src/sys/socket.rs
@@ -113,6 +113,13 @@ mod consts {
pub const IP_MULTICAST_LOOP: SockOpt = 34;
pub const IP_ADD_MEMBERSHIP: SockOpt = 35;
pub const IP_DROP_MEMBERSHIP: SockOpt = 36;
+
+ pub type InAddrT = u32;
+
+ // Declarations of special addresses
+ pub const INADDR_ANY: InAddrT = 0;
+ pub const INADDR_NONE: InAddrT = 0xffffffff;
+ pub const INADDR_BROADCAST: InAddrT = 0xffffffff;
}
#[cfg(any(target_os = "macos", target_os = "ios"))]