From 8391b12117f388c7dc387ede37d69b6857e726fd Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Tue, 14 Jan 2020 11:23:49 -0800 Subject: [PATCH] Use the same number in kernel --- src/core/lib/iomgr/tcp_custom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/lib/iomgr/tcp_custom.h b/src/core/lib/iomgr/tcp_custom.h index 9c81e85012e..fd2cb0313d9 100644 --- a/src/core/lib/iomgr/tcp_custom.h +++ b/src/core/lib/iomgr/tcp_custom.h @@ -24,7 +24,8 @@ #include "src/core/lib/iomgr/endpoint.h" #include "src/core/lib/iomgr/sockaddr.h" -#define GRPC_CUSTOM_SOCKET_OPT_SO_REUSEPORT (0x00000010u) +// Same number as the micro of SO_REUSEPORT in kernel +#define GRPC_CUSTOM_SOCKET_OPT_SO_REUSEPORT (0x00000200u) typedef struct grpc_tcp_listener grpc_tcp_listener; typedef struct grpc_custom_tcp_connect grpc_custom_tcp_connect;