Skip to content

Commit 1d9d7df

Browse files
author
Eugene Ostroukhov
committed
fixup: import issues
1 parent 9f076f2 commit 1d9d7df

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

src/core/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,6 +3081,8 @@ grpc_cc_library(
30813081
"iomgr_port",
30823082
"posix_event_engine_closure",
30833083
"posix_event_engine_event_poller",
3084+
"posix_event_engine_file_descriptor_collection",
3085+
"posix_event_engine_posix_interface",
30843086
"posix_event_engine_tcp_socket_utils",
30853087
"ref_counted_dns_resolver_interface",
30863088
"resolved_address",

src/core/lib/event_engine/posix_engine/posix_interface_posix.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,6 @@ void TrySetSocketTcpUserTimeout(int fd, const PosixTcpOptions& options,
353353
}
354354
}
355355

356-
#ifdef GRPC_POSIX_SOCKET_UTILS_COMMON
357-
#ifndef GRPC_SET_SOCKET_DUALSTACK_CUSTOM
358-
359-
bool SetSocketDualStack(int fd) {
360-
const int off = 0;
361-
return 0 == setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &off, sizeof(off));
362-
}
363-
364-
#endif // GRPC_SET_SOCKET_DUALSTACK_CUSTOM
365-
#endif // GRPC_POSIX_SOCKET_UTILS_COMMON
366-
367356
absl::StatusOr<int> InternalCreateDualStackSocket(
368357
std::function<int(int, int, int)> socket_factory,
369358
const experimental::EventEngine::ResolvedAddress& addr, int type,

src/core/lib/event_engine/posix_engine/tcp_socket_utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ bool IsIpv6LoopbackAvailable();
160160
// Return true if SO_REUSEPORT is supported
161161
bool IsSocketReusePortSupported();
162162

163+
bool SetSocketDualStack(int fd);
164+
163165
} // namespace grpc_event_engine::experimental
164166

165167
#endif // GRPC_SRC_CORE_LIB_EVENT_ENGINE_POSIX_ENGINE_TCP_SOCKET_UTILS_H

0 commit comments

Comments
 (0)