summaryrefslogtreecommitdiffstats
path: root/net/udp/udp_client_socket.h
diff options
context:
space:
mode:
authoragayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 03:47:04 +0000
committeragayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 03:47:04 +0000
commit5370c013eb6372dbffe91de3fde793da6b74e4e1 (patch)
treef4a14d0380e1c673c1e0d54f75a192fc1b504b9e /net/udp/udp_client_socket.h
parent034bda715a6756a9b07de1fe9db9ceb6caf73123 (diff)
downloadchromium_src-5370c013eb6372dbffe91de3fde793da6b74e4e1.zip
chromium_src-5370c013eb6372dbffe91de3fde793da6b74e4e1.tar.gz
chromium_src-5370c013eb6372dbffe91de3fde793da6b74e4e1.tar.bz2
Add support for random UDP source port selection to avoid birthday attacks in DNS implementation.
BUG=60149 TEST=net_unittests Review URL: http://codereview.chromium.org/7202011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/udp/udp_client_socket.h')
-rw-r--r--net/udp/udp_client_socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/udp/udp_client_socket.h b/net/udp/udp_client_socket.h
index 3dc8778..b26393c 100644
--- a/net/udp/udp_client_socket.h
+++ b/net/udp/udp_client_socket.h
@@ -7,6 +7,7 @@
#pragma once
#include "net/base/net_log.h"
+#include "net/base/rand_callback.h"
#include "net/udp/datagram_client_socket.h"
#include "net/udp/udp_socket.h"
@@ -17,7 +18,9 @@ class BoundNetLog;
// A client socket that uses UDP as the transport layer.
class NET_TEST UDPClientSocket : public DatagramClientSocket {
public:
- UDPClientSocket(net::NetLog* net_log,
+ UDPClientSocket(DatagramSocket::BindType bind_type,
+ const RandIntCallback& rand_int_cb,
+ net::NetLog* net_log,
const net::NetLog::Source& source);
virtual ~UDPClientSocket();