summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/seqnum/seqnum.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-20 05:18:38 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-20 05:18:38 +0000
commitf9519276e4e7f1b35af962f22fb54f2b40ecb396 (patch)
tree97c06168090c7dcd8efa917cc1d2c469c791366a /pkg/tcpip/seqnum/seqnum.go
parent30168d475268997a48c351461aed7e11106d9053 (diff)
parentdb2a60be67f0e869a58eb12d253a0d7fe13ebfa3 (diff)
Merge release-20200323.0-187-gdb2a60b (automated)
Diffstat (limited to 'pkg/tcpip/seqnum/seqnum.go')
-rw-r--r--pkg/tcpip/seqnum/seqnum.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/tcpip/seqnum/seqnum.go b/pkg/tcpip/seqnum/seqnum.go
index b40a3c212..d3bea7de4 100644
--- a/pkg/tcpip/seqnum/seqnum.go
+++ b/pkg/tcpip/seqnum/seqnum.go
@@ -46,11 +46,6 @@ func (v Value) InWindow(first Value, size Size) bool {
return v.InRange(first, first.Add(size))
}
-// Overlap checks if the window [a,a+b) overlaps with the window [x, x+y).
-func Overlap(a Value, b Size, x Value, y Size) bool {
- return a.LessThan(x.Add(y)) && x.LessThan(a.Add(b))
-}
-
// Add calculates the sequence number following the [v, v+s) window.
func (v Value) Add(s Size) Value {
return v + Value(s)