From b8fdc1328392885c8e54daa1386f0fbc063c8571 Mon Sep 17 00:00:00 2001 From: Evgeny Rozaliev Date: Tue, 28 Oct 2014 14:48:07 +0300 Subject: Add SO_REUSEPORT for macos --- src/sys/socket.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sys/socket.rs') diff --git a/src/sys/socket.rs b/src/sys/socket.rs index b5c1c1ef..a15afa28 100644 --- a/src/sys/socket.rs +++ b/src/sys/socket.rs @@ -184,6 +184,7 @@ mod consts { pub const SO_RESTRICT_DENYIN: SockOpt = 0x00000001; pub const SO_RESTRICT_DENYOUT: SockOpt = 0x00000002; pub const SO_REUSEADDR: SockOpt = 0x0004; + pub const SO_REUSEPORT: SockOpt = 0x0200; pub const SO_REUSESHAREUID: SockOpt = 0x1025; pub const SO_SNDBUF: SockOpt = 0x1001; pub const SO_TIMESTAMP: SockOpt = 0x0400; -- cgit v1.2.3