Internal change.

PiperOrigin-RevId: 234011346
Change-Id: Ic69375ddb3794dd0d3d6e62ee4dc60fdf4baf2c7
This commit is contained in:
Googler
2019-02-14 12:54:27 -08:00
committed by Shentubot
parent cbd6b35c56
commit d60ce17a21
@@ -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