summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/socket_test_util.h
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-26 14:04:24 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-26 14:07:17 -0700
commitbaf4d8aaca520255d52627779ada2be56be7f861 (patch)
tree77020e9e6ae843756dbee6151e2b8c54079f3c8d /test/syscalls/linux/socket_test_util.h
parent7206202bb9439499a084a90dd885ef77f51186aa (diff)
Internal change.
PiperOrigin-RevId: 265535438
Diffstat (limited to 'test/syscalls/linux/socket_test_util.h')
-rw-r--r--test/syscalls/linux/socket_test_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syscalls/linux/socket_test_util.h b/test/syscalls/linux/socket_test_util.h
index ae0da2679..6efa8055f 100644
--- a/test/syscalls/linux/socket_test_util.h
+++ b/test/syscalls/linux/socket_test_util.h
@@ -492,6 +492,11 @@ uint16_t UDPChecksum(struct iphdr iphdr, struct udphdr udphdr,
uint16_t ICMPChecksum(struct icmphdr icmphdr, const char* payload,
ssize_t payload_len);
+namespace internal {
+PosixErrorOr<int> TryPortAvailable(int port, AddressFamily family,
+ SocketType type, bool reuse_addr);
+} // namespace internal
+
} // namespace testing
} // namespace gvisor