|
Implement the "sanity checks" described in b/9509040: Incoming packets
whose connection ID is not associated with a session and is not recorded
as being in time-wait state are tested for reasonableness before a
session is created for them. This won't protect much against deliberate
DoS but will screen out a reasonable fraction of truly junk packets.
Add sanity tests so we do not create connections for initial packets
with truncated connection IDs.
Merge internal change: 87831756
R=rch@chromium.org
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+197 lines, -58 lines) |
Patch |
 |
M |
net/quic/quic_dispatcher.h
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_dispatcher.cc
|
View
|
|
3 chunks |
+54 lines, -26 lines |
0 comments
|
Download
|
 |
M |
net/quic/test_tools/quic_test_utils.h
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/quic/test_tools/quic_test_utils.cc
|
View
|
|
1 chunk |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_dispatcher.h
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_dispatcher.cc
|
View
|
|
3 chunks |
+54 lines, -26 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/quic_dispatcher_test.cc
|
View
|
|
4 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/test_tools/quic_test_utils.h
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/tools/quic/test_tools/quic_test_utils.cc
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|