mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 234011346 Change-Id: Ic69375ddb3794dd0d3d6e62ee4dc60fdf4baf2c7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user