Chromium Code Reviews| Index: net/udp/udp_socket_posix.h |
| diff --git a/net/udp/udp_socket_posix.h b/net/udp/udp_socket_posix.h |
| index 305c435334ae0c4f27de4f29b72b66671a92207a..86b7c3d2c8ae761d7f8a35858326e13b36f15582 100644 |
| --- a/net/udp/udp_socket_posix.h |
| +++ b/net/udp/udp_socket_posix.h |
| @@ -119,6 +119,11 @@ class NET_EXPORT UDPSocketPosix : public base::NonThreadSafe { |
| // Returns a net error code. |
| int SetSendBufferSize(int32_t size); |
| + // 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:06
See other comment.
Ryan Hamilton
2016/08/12 21:46:02
Done.
|
| + int SetDoNotFragment(); |
|
mmenke
2016/08/12 19:46:06
Should we actually call these in tests?
Ryan Hamilton
2016/08/12 21:46:02
Good point. Done.
|
| + |
| // Returns true if the socket is already connected or bound. |
| bool is_connected() const { return is_connected_; } |