summaryrefslogtreecommitdiff
path: root/net/socket/udp_socket_posix.h
diff options
context:
space:
mode:
authorCronet Mainline Eng <cronet-mainline-eng+copybara@google.com>2023-04-18 07:37:34 -0800
committerPatrick Rohr <prohr@google.com>2023-04-18 08:40:26 -0700
commiteddec18c18cdbcbdbbe9bf3c0fa24cb7f8d768ae (patch)
tree2983326030c4b680835550dca47bc960e77c492f /net/socket/udp_socket_posix.h
parent41cb724250484f326b0bbd5f8b955eb37b3b83c6 (diff)
downloadcronet-eddec18c18cdbcbdbbe9bf3c0fa24cb7f8d768ae.tar.gz
Import Cronet version 114.0.5715.0
Project import generated by Copybara. FolderOrigin-RevId: /tmp/copybara-origin/src Test: none Change-Id: I15627f4badf0f6173d24f6c555169cc815a29fdd
Diffstat (limited to 'net/socket/udp_socket_posix.h')
-rw-r--r--net/socket/udp_socket_posix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket/udp_socket_posix.h b/net/socket/udp_socket_posix.h
index 59eb51499..ed9c7549c 100644
--- a/net/socket/udp_socket_posix.h
+++ b/net/socket/udp_socket_posix.h
@@ -251,6 +251,10 @@ class NET_EXPORT UDPSocketPosix {
// Returns a net error code.
int SetDiffServCodePoint(DiffServCodePoint dscp);
+ // Sets IPV6_V6ONLY on the socket. If this flag is true, the socket will be
+ // restricted to only IPv6; false allows both IPv4 and IPv6 traffic.
+ int SetIPv6Only(bool ipv6_only);
+
// Exposes the underlying socket descriptor for testing its state. Does not
// release ownership of the descriptor.
SocketDescriptor SocketDescriptorForTesting() const { return socket_; }