From aa0863b0b9b31630159b5a36db694b43b3500bdc Mon Sep 17 00:00:00 2001 From: "Y. T. Chung" Date: Tue, 23 Jun 2015 10:26:00 +0800 Subject: TCP_NODELAY should be in IPPROTO_TCP level --- src/sys/socket/sockopt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index 13e87476..4c7354ab 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -117,7 +117,7 @@ macro_rules! sockopt_impl { sockopt_impl!(Both, ReuseAddr, consts::SOL_SOCKET, consts::SO_REUSEADDR, bool); sockopt_impl!(Both, ReusePort, consts::SOL_SOCKET, consts::SO_REUSEPORT, bool); -sockopt_impl!(Both, TcpNoDelay, consts::SOL_SOCKET, consts::TCP_NODELAY, bool); +sockopt_impl!(Both, TcpNoDelay, consts::IPPROTO_TCP, consts::TCP_NODELAY, bool); sockopt_impl!(Both, Linger, consts::SOL_SOCKET, consts::SO_LINGER, super::linger); sockopt_impl!(SetOnly, IpAddMembership, consts::IPPROTO_IP, consts::IP_ADD_MEMBERSHIP, super::ip_mreq); sockopt_impl!(SetOnly, IpDropMembership, consts::IPPROTO_IP, consts::IP_DROP_MEMBERSHIP, super::ip_mreq); -- cgit v1.2.3