summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2019-02-14 12:53:23 -0800
committerShentubot <shentubot@google.com>2019-02-14 12:54:27 -0800
commitd60ce17a21a28ab32607b195ae42692442322ff8 (patch)
tree8be81ea35d3d40d8f72fed470b32f0802a22f57f
parentcbd6b35c56011d6e2d75a68385bdc984fdf35317 (diff)
Internal change.
PiperOrigin-RevId: 234011346 Change-Id: Ic69375ddb3794dd0d3d6e62ee4dc60fdf4baf2c7
-rw-r--r--pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go b/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
index f7b2900de..b94568fb1 100644
--- a/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
+++ b/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
@@ -67,7 +67,7 @@ type TCB struct {
}
// Init initializes the state of the TCB according to the initial SYN.
-func (t *TCB) Init(initialSyn header.TCP) {
+func (t *TCB) Init(initialSyn header.TCP) Result {
t.handlerInbound = synSentStateInbound
t.handlerOutbound = synSentStateOutbound
@@ -83,6 +83,7 @@ func (t *TCB) Init(initialSyn header.TCP) {
t.inbound.nxt = 0
t.inbound.end = seqnum.Value(initialSyn.WindowSize())
t.state = ResultConnecting
+ return t.state
}
// UpdateStateInbound updates the state of the TCB based on the supplied inbound