diff options
author | Eyal Soha <eyalsoha@google.com> | 2020-04-19 22:14:53 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-19 22:16:14 -0700 |
commit | db2a60be67f0e869a58eb12d253a0d7fe13ebfa3 (patch) | |
tree | abd1a0ad3a7c84f301e5bad7f8ae83db8e9c03e3 /pkg/tcpip/transport/tcp/BUILD | |
parent | 08b2fd9bc2a963ea15821b782cf6d80c15dbdf42 (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/BUILD | 10 |
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", + ], +) |