Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Unified Diff: net/udp/datagram_socket.h

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/udp/fuzzed_datagram_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/datagram_socket.h
diff --git a/net/udp/datagram_socket.h b/net/udp/datagram_socket.h
index b61e831bdf499ca93be031049d162db36bda1609..19936979f4157706bdf3f1a5a2505e8d7edba0ed 100644
--- a/net/udp/datagram_socket.h
+++ b/net/udp/datagram_socket.h
@@ -38,6 +38,13 @@ class NET_EXPORT_PRIVATE DatagramSocket {
// before other calls.
virtual void UseNonBlockingIO() = 0;
+ // Requests that packets sent by this socket not be fragment, either locally
+ // by the host, or by routers (via the DF bit in the IPv4 packet header).
+ // May not be supported by all platforms. Returns a return a network error
+ // code if there was a problem, but the socket will still be usable. Can not
+ // return ERR_IO_PENDING.
+ virtual int SetDoNotFragment() = 0;
+
// Gets the NetLog for this socket.
virtual const BoundNetLog& NetLog() const = 0;
};
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/udp/fuzzed_datagram_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698