summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/protocol.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-10 02:30:24 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-10 02:30:24 +0000
commitfbc3187cbf813002017121b53d77e44ebd29a845 (patch)
tree852aa3dfc3700c60f4ee2810e632b484b65d127a /pkg/tcpip/transport/tcp/protocol.go
parente3717d6d92a5b7d6686240a58274fe15f3b0f530 (diff)
parent2a888a106da39f1d5e280417e48a05341a41f4dd (diff)
Merge release-20210301.0-31-g2a888a106 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/protocol.go')
-rw-r--r--pkg/tcpip/transport/tcp/protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/protocol.go b/pkg/tcpip/transport/tcp/protocol.go
index 04012cd40..2a4667906 100644
--- a/pkg/tcpip/transport/tcp/protocol.go
+++ b/pkg/tcpip/transport/tcp/protocol.go
@@ -226,7 +226,7 @@ func replyWithReset(stack *stack.Stack, s *segment, tos, ttl uint8) tcpip.Error
// Get the seqnum from the packet if the ack flag is set.
seq := seqnum.Value(0)
ack := seqnum.Value(0)
- flags := byte(header.TCPFlagRst)
+ flags := header.TCPFlagRst
// As per RFC 793 page 35 (Reset Generation)
// 1. If the connection does not exist (CLOSED) then a reset is sent
// in response to any incoming segment except another reset. In