summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2018-05-09 09:20:37 -0700
committerShentubot <shentubot@google.com>2018-05-09 09:21:25 -0700
commit5ed969aff0e9def4018d24436fb77257925f6a1c (patch)
tree3b932559f2d245a5cbf3e4451063aa64a1ace83c /pkg/tcpip
parentad278d69447ddca9c6923e5e830c12f1329438b9 (diff)
Internal change.
PiperOrigin-RevId: 195980843 Change-Id: I066f9696b69e92e144c2c8d2c2aa52c546df94fb
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go b/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
index 487f2572d..194af772c 100644
--- a/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
+++ b/pkg/tcpip/transport/tcpconntrack/tcp_conntrack.go
@@ -106,6 +106,11 @@ func (t *TCB) OutboundSendSequenceNumber() seqnum.Value {
return t.outbound.nxt
}
+// InboundSendSequenceNumber returns the snd.NXT for the inbound stream.
+func (t *TCB) InboundSendSequenceNumber() seqnum.Value {
+ return t.inbound.nxt
+}
+
// adapResult modifies the supplied "Result" according to the state of the TCB;
// if r is anything other than "Alive", or if one of the streams isn't closed
// yet, it is returned unmodified. Otherwise it's converted to either