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

Unified Diff: net/socket/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: Blimp 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/socket/socket.h
diff --git a/net/socket/socket.h b/net/socket/socket.h
index cda54063f3059e76726c896b5e6ae87508a5f483..b65e783071921e6c85a5eac848c53efe03533160 100644
--- a/net/socket/socket.h
+++ b/net/socket/socket.h
@@ -57,6 +57,10 @@ class NET_EXPORT Socket {
// Note: changing this value can affect the TCP window size on some platforms.
// Returns a net error code.
virtual int SetSendBufferSize(int32_t size) = 0;
+
+ // Configures the socket to set or clear the DF (Do not Fragment) bit on
+ // packets, which prevents routers from fragmenting them.
+ virtual int SetDoNotFragment(bool do_not_fragment) = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698