From d60ce17a21a28ab32607b195ae42692442322ff8 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 14 Feb 2019 12:53:23 -0800 Subject: Internal change. PiperOrigin-RevId: 234011346 Change-Id: Ic69375ddb3794dd0d3d6e62ee4dc60fdf4baf2c7 --- pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg') 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 -- cgit v1.2.3