mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Introduce AddressMask.Equals
...for use by the cmp library. PiperOrigin-RevId: 536530206
This commit is contained in:
committed by
gVisor bot
parent
c5da2f6543
commit
8ee5c3dfea
@@ -359,6 +359,12 @@ func (m AddressMask) Prefix() int {
|
||||
return p
|
||||
}
|
||||
|
||||
// Equal returns whether m and other are equal. It exists for use by the cmp
|
||||
// library.
|
||||
func (m AddressMask) Equal(other AddressMask) bool {
|
||||
return m == other
|
||||
}
|
||||
|
||||
// Subnet is a subnet defined by its address and mask.
|
||||
type Subnet struct {
|
||||
address Address
|
||||
|
||||
Reference in New Issue
Block a user