summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/BUILD
diff options
context:
space:
mode:
authorEyal Soha <eyalsoha@google.com>2020-04-19 22:14:53 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-19 22:16:14 -0700
commitdb2a60be67f0e869a58eb12d253a0d7fe13ebfa3 (patch)
treeabd1a0ad3a7c84f301e5bad7f8ae83db8e9c03e3 /pkg/tcpip/transport/tcp/BUILD
parent08b2fd9bc2a963ea15821b782cf6d80c15dbdf42 (diff)
Don't accept segments outside the receive window
Fixed to match RFC 793 page 69. Fixes #1607 PiperOrigin-RevId: 307334892
Diffstat (limited to 'pkg/tcpip/transport/tcp/BUILD')
-rw-r--r--pkg/tcpip/transport/tcp/BUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/BUILD b/pkg/tcpip/transport/tcp/BUILD
index edb7718a6..61426623c 100644
--- a/pkg/tcpip/transport/tcp/BUILD
+++ b/pkg/tcpip/transport/tcp/BUILD
@@ -109,3 +109,13 @@ go_test(
"//runsc/testutil",
],
)
+
+go_test(
+ name = "rcv_test",
+ size = "small",
+ srcs = ["rcv_test.go"],
+ deps = [
+ ":tcp",
+ "//pkg/tcpip/seqnum",
+ ],
+)