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

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: Fix !$ 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
Index: net/udp/datagram_socket.h
diff --git a/net/udp/datagram_socket.h b/net/udp/datagram_socket.h
index f0e9fa10baa7fb181b9b2cc6810459c6c31359d6..cde1fd86506e0c96b964e8c137eee8858e3991c8 100644
--- a/net/udp/datagram_socket.h
+++ b/net/udp/datagram_socket.h
@@ -34,6 +34,11 @@ class NET_EXPORT_PRIVATE DatagramSocket {
// (similar to getsockname)
virtual int GetLocalAddress(IPEndPoint* address) const = 0;
+ // If supported by the platform, configures the socket to set the DF
+ // (Do not Fragment) bit on packets, which prevents routers from fragmenting
+ // them. Also, for IPv6, it prevents hosts from fragmenting them.
mmenke 2016/08/12 19:46:05 hosts -> remote endpoint (Note that this is used f
mmenke 2016/08/12 19:46:05 Mention the return value, and if the socket is sti
Ryan Hamilton 2016/08/12 21:46:02 Done.
+ virtual int SetDoNotFragment() = 0;
+
// Gets the NetLog for this socket.
virtual const BoundNetLog& NetLog() const = 0;
};

Powered by Google App Engine
This is Rietveld 408576698