diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-07 00:32:32 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-07 00:32:32 +0000 |
commit | eeb3249ffeaa84f3de890132927c25d21534b001 (patch) | |
tree | 6582020019b704ce3a90c62bb34127c01fef19a0 /pkg/tcpip/tcpip.go | |
parent | 54b6fd090abe19627df27b02b469581cb8c895d7 (diff) | |
parent | e63db5e7bbf8decc6f799965f54fcf7aa6673527 (diff) |
Merge release-20190806.1-376-ge63db5e (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 03be7d3d4..3edb513d4 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -231,6 +231,13 @@ func (s *Subnet) Broadcast() Address { return Address(addr) } +// Equal returns true if s equals o. +// +// Needed to use cmp.Equal on Subnet as its fields are unexported. +func (s Subnet) Equal(o Subnet) bool { + return s == o +} + // NICID is a number that uniquely identifies a NIC. type NICID int32 |