diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-26 14:04:24 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-26 14:07:17 -0700 |
commit | baf4d8aaca520255d52627779ada2be56be7f861 (patch) | |
tree | 77020e9e6ae843756dbee6151e2b8c54079f3c8d /test/syscalls/linux/socket_test_util.h | |
parent | 7206202bb9439499a084a90dd885ef77f51186aa (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.h | 5 |
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 |