Introduce AddressMask.Equals

...for use by the cmp library.

PiperOrigin-RevId: 536530206
This commit is contained in:
Ghanan Gowripalan
2023-05-30 15:48:52 -07:00
committed by gVisor bot
parent c5da2f6543
commit 8ee5c3dfea
+6
View File
@@ -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