summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-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